4 ms·
Yeah I know the trick and I explain it a bit more in another article on my blog. Most of the time it's more keystrokes than using :s though, so I'm not a big f
by thanato0s 6y ago
Yeah I know the trick and I explain it a bit more in another article on my blog.
Most of the time it's more keystrokes than using :s though, so I'm not a big fan of it. But I see the appeal :)
- typon 6y agoI'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.