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
You can record macros in Vim by pressing q
. Macros can include the n
command to search for the next instance of a word. You can also go into insert mode while recording (e.g. using the c
command with a motion such as iw
to replace the current word). Press q
to stop recording, and then press @
to replay the macro once. After that, you can use @@
to repeat the macro as many times as you like.