diff --git a/.config/vim/vimrc b/.config/vim/vimrc index e639090..ed9d587 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -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