by mb720 · 6y ago · 0 comments
https://github.com/tyru/open-browser.vim
Here's my config from the vimrc:
" Disable netrw's gx mapping
let g:netrw_nogx = 1
" If the current word is a URL, open it in the browser. Else, pass it to a search engine
nmap gx <Plug>(openbrowser-smart-search)
vmap gx <Plug>(openbrowser-smart-search)
let g:openbrowser_default_search="duckduckgo"
No comments yet.