Hacker News new | ask | show | jobs
by Xi_Bprime 1434 days ago
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).

1 comments

> 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).