From 8d55e5093a5644feeb447ce3877c8e50414b763f Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 12 Apr 2022 17:58:52 +0200 Subject: [PATCH] neovim: Show live preview of substitution --- users/simon/modules/neovim/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/users/simon/modules/neovim/init.lua b/users/simon/modules/neovim/init.lua index 9124ebb..7831ee6 100644 --- a/users/simon/modules/neovim/init.lua +++ b/users/simon/modules/neovim/init.lua @@ -58,6 +58,7 @@ autocmd BufReadPost * if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# -- Search opt.ignorecase = true -- ignore case +opt.inccommand = 'nosplit' -- live preview of substitution opt.smartcase = true -- but only with all-lowercase searches -- Highlight trailing spaces