xolox / vim-shell

Improved integration between Vim and its environment (fullscreen, open URL, background command execution)
http://peterodding.com/code/vim/shell/
169 stars 12 forks source link

Configuration of browser when opening URL #7

Closed wikimatze closed 11 years ago

wikimatze commented 12 years ago

Hi,

I read through the documentation of the plugin how I can customize which Browser is called when I press F6 to open a link. The default browser is Firefox and I want to use Chrome instead. Even the documentation of your open.vim plugin (http://peterodding.com/code/vim/open-associated-programs/) says:

that the xolox#open#url() function takes a string argument containing a URL or e-mail address and opens it in your favorite or >the best available web browser / email client.

On line 61 of open.vim https://github.com/xolox/vim-open-associated-programs/blob/master/open.vim you are calling

call xolox#open#file(url, 'firefox', 'google-chrome')

Is it possible to pass the arguments in this function with a predefined variable so that the user can put the option into the .vimrc

wikimatze commented 11 years ago

Changing the user-settings of my OS solved the problem. No further code is required for this.