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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user