8 years ago
Repeat a change on the next occurrences of the word under the cursor.
<key> to change the current word then
N to skip the next occurrence,
. to repeat the previous move + change.
nnoremap <key> *``cgn nnoremap <KEY> #``cgN
Konfekt 8 years ago
Very useful. Because
c*/# are little intuitive and utile, I overrode them by these commands. The last comma actually signifies an OR, that is:
Either press n/N to skip the next occurrence, _or_
press . to repeat the previous move and change