News for hackers. Stuff that matters.
Re:My productivity app for the past 12 years has been a sing... by mb720 on Monday February 10, 2020 @03:28AM (#22287328)
Similar to 'gf' there's 'gx' that opens a URL in your browser. I use this every day.

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"

There are no comments on this comment yet.