tyru/open-browser.vim

issue with using this plugin with vimb

wsdjeg opened this issue · 7 comments

hi @tyru thanks for this plugin.

I do not have firefox or chrome installed in my pc, the only one is vimb. when using this plugin
vim will block until vimb is closed.

vimb is : https://github.com/fanglingsu/vimb

tyru commented

What OS are you using?

I am using archlinux.

tyru commented

sorry for silence. I moved.

Please try this:

let g:openbrowser_browser_commands = [
\   {'name': 'vimb',
\    'args': ['{browser}', '{uri}']}
]

Or if vimb is not in $PATH:

let g:openbrowser_browser_commands = [
\   {'name': 'vimb',
\    'cmd' : '<path to vimb>',
\    'args': ['{browser}', '{uri}']}
]

@tyru

still block vim

the issue is run vimb https://google.com in command-line will block terminal until the vimb windows is closed,

BTW the vim script should be:

let g:openbrowser_browser_commands = [
\   {'name': 'vimb',
\    'args': ['{browser}', '{uri}']}
\    ]

maybe should run command like nohup vimb http://google.com &

tyru commented

Try adding background:

let g:openbrowser_browser_commands = [
\   {'name': 'vimb',
\    'args': ['{browser}', '{uri}']},
\    'background': 1}
]
tyru commented

@wsdjeg closable?

yeah, Thanks for your info.