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
This commit is contained in:
Jonathan Hodgson 2020-09-29 08:50:23 +01:00
parent 9058178187
commit 3c19dd0ace

View file

@ -34,3 +34,7 @@ set list listchars=tab:»\ ,trail:\␣,eol:↩
" Stops vim wrapping in the middle of a word
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"