3 ms·
I'm paranoid and I like seeing exactly what I'm replacing. In that case I still use :s but I always end it with :s/foo/bar/gc. Although I do see the appeal of c
by typon 6y ago
I'm paranoid and I like seeing exactly what I'm replacing. In that case I still use :s but I always end it with :s/foo/bar/gc. Although I do see the appeal of cgn for simple replacements.
- thanato0s 6y agoIf you use Neovim, you can set the option inccommand: set inccommand=nosplit It will display the substitute directly in the buffer.