From f32467803ad018427b2d0f6f24d4a8be891f1eb5 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 29 Sep 2020 08:50:23 +0100 Subject: [PATCH] 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 --- nvim/.config/nvim/plugin/settings.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvim/.config/nvim/plugin/settings.vim b/nvim/.config/nvim/plugin/settings.vim index 09ce3189..fba63d12 100644 --- a/nvim/.config/nvim/plugin/settings.vim +++ b/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 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"