From b2536d7c2f5dc99aba63d19f8cb83e1795b7207a Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 17 Jun 2022 15:01:49 +0200 Subject: [PATCH] vim:settings: Set `inccommand=split` Show partial off-screen effects of a command in a preview window. --- .config/vim/vimrc.d/30-settings.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/vim/vimrc.d/30-settings.vim b/.config/vim/vimrc.d/30-settings.vim index 3d260fa..19c72e2 100644 --- a/.config/vim/vimrc.d/30-settings.vim +++ b/.config/vim/vimrc.d/30-settings.vim @@ -28,9 +28,10 @@ set undofile set updatetime=300 " Check for spelling in comments and strings set spell spelllang=en -" Show the effect of a command while typing (substitute) +" Show the effect of a command while typing (substitute). Show partial +" off-screen results in a preview window. if (has('nvim')) - set inccommand=nosplit + set inccommand=split endif " Put new window below/right of current set splitbelow splitright