Let nvim show the effect of a command while typing

For example when typing a substitute command: live highlight the pattern
and show the result to which it would be substituted.
This commit is contained in:
2020-09-13 17:32:55 +02:00
parent 253501a230
commit 1b783875ba

View File

@@ -55,6 +55,14 @@ set undofile
set updatetime=300
" Check for spelling in comments and strings
set spell spelllang=en_us
" Show the effect of a command while typing (substitute)
if (has('nvim'))
set inccommand=nosplit
endif
" By default substitute with g flag (useful for inccommand and since I never
" substitute without the g flag.
" Specify g again to toggle it back
set gdefault
" Aesthetics ###################################################################
" Use 24-bit (true-color) mode