From d87d2cfee505549acd90fbd39d4c19a39babe3cb Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 30 Oct 2024 15:47:03 +0100 Subject: [PATCH] vim:NrrwRgn: Don't let splits take full width The default setting of `g:loaded_nrrw_rgn` is `topleft` which opens the split at the very top/far left and makes the window have full width/height. This is very annoying when narrowing multiple splits. --- .config/vim/vimrc.d/20-plugins.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/vim/vimrc.d/20-plugins.vim b/.config/vim/vimrc.d/20-plugins.vim index c534f6a..2ed1cd1 100644 --- a/.config/vim/vimrc.d/20-plugins.vim +++ b/.config/vim/vimrc.d/20-plugins.vim @@ -35,3 +35,9 @@ if (get(g:, 'loaded_vimwiki')) " Use vertical box drawing character as table separator call vimwiki#vars#set_syntaxlocal('rxTableSep', '│') endif + +if exists("g:loaded_nrrw_rgn") + " Open narrow window above or to the left of the current window (default + " is topleft). See :h aboveleft etc. + let g:nrrw_topbot_leftright = 'aboveleft' +endif