By default, if a buffer in vim contains a URL such as http://www.google.com
, gx in normal mode will open a browser with that URL. That's very handy. However, if the URL has URL parameters (e.g. http://www.google.com/search?q=stuff
), then the URL parameters are missed out (i.e. just http://www.google.com/search
is opened).
I am using MacVim 7.4 patch 183, with Chrome as the primary browser (on OS X 10.9).
Is there an easy way, ideally with minimal customization, to make gx recognise a full URL?
gx
(which is not ideal but better than copy/paste).let
.gx
..vimrc
), with different terminals (urxvt
,sakura
) and different browsers (g:netrw_browsex_viewer
set to'uzbl-browser'
/'firefox'
/'google-chrome'
.