Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can search & replace all occurences of a word with the substitute command.

Type : and write `%s/user/account/g`.

Although you won't get a real-time preview and will only see the changes after they've happened, unless you use a bunch of extensions(I use nvim).



> Although you won't get a real-time preview and will only see the changes after they've happened, unless you use a bunch of extensions(I use nvim).

In Neovim, you can just :set inccommand=nosplit (actually, it's the default now).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: