In zsh in vim mode, I write something
foo foo bar bar
Then I hit Esc to go in normal mode and type :
foo foo bar bar
execute: _
Then, I assume I can do that, I want to search and replace bar with baz
foo foo bar bar
execute: s/bar/baz/g_
Then I try to hit Enter, but that doesn't work. I can only go back from the execute using Ctrl+c.
How can I execute the command?
I tried this with my normal .zshrc and without any .zshrc at all.
vand entervim, if I want to use the substitute command. – pfnuesel Jan 14 '21 at 12:02