When I press gx over a link in vim, it opens it in an external application, when it does this it also suspends Vim.
How do I prevent it from suspending Vim, so that I can use Vim while browsing whatever it opened externally.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
Use vim-shell plugin instead with this config:
let g:netrw_nogx = 1 " disable netrw's gx mapping. nnoremap gx :Open<CR>
What works for me with neovim v0.2.2 on lubuntu 17.10 is the open-browser.vim plugin (https://github.com/tyru/open-browser.vim) with the following settings in my
let g:netrw_nogx = 1 " disable netrw's gx mapping. nmap gx <Plug>(openbrowser-smart-search) vmap gx <Plug>(openbrowser-smart-search)