"Differential" dot formula

1 Point

Romain Lafourcade Romain Lafourcade

10 years ago

Perform different changes to the next occurrences of the word under the cursor.

-- Press § to change the current word,

-- press § again to jump to the next occurrence,

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

-- press . to repeat the previous change.

nnoremap        § *``gn<C-g>
inoremap        § <C-o>gn<C-g>
xnoremap        § "vy:let @/ = @v<CR>gn<C-g>
snoremap <expr> . @.