Anyone familiar with Sublime Text\'s multiple cursor feature will recognize the pattern of doing the following: press a hotkey multiple times to select multiple instances of the
I use the *
, gn
, and the .
to make changes.
*
(go back with N
)gn
motion. e.g. cgnfoo
.
commandNote: If you have many changes then using a substitution command would probably be better.
There is a nice Vimcasts episode about the gn
motion: Operating on search matches using gn.
For more help see:
:h *
:h gn
:h .