VIM: Makes vim open external files with opout

Vim can open external files when the cursor is "over" them by pushing gx

If in a netrw window, simply x is used.

This is useful when in, for example, a markdown file. I can view the
image by putting the cursor over the path and pushing gx
Jonathan Hodgson 4 years ago
parent 4c1c68c650
commit f32467803a
  1. 4
      nvim/.config/nvim/plugin/settings.vim

@ -34,3 +34,7 @@ set list listchars=tab:»\ ,trail:\␣,eol:↩
" Stops vim wrapping in the middle of a word " Stops vim wrapping in the middle of a word
set linebreak set linebreak
" Sets tool for opening non-text files with gx
" If in netrw, this is run with just x
let g:netrw_browsex_viewer = "opout"

Loading…
Cancel
Save