"Incremental" dot formula

3 Points

Romain Lafourcade Romain Lafourcade

10 years ago

Repeat a change on the next occurrences of the word under the cursor.

-- Press <key> to change the current word then <Esc>,

-- press n or N to skip the next occurrence,

-- press . to repeat the previous move + change.

nnoremap <key> *``cgn
nnoremap <KEY> #``cgN

Konfekt

Konfekt 9 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