On , I learnt ...
About Vim’s semi-colon search offset
A search with
? can include an additional offset to position the cursor
after jumping to the search match. From
pattern cursor position /test/+1 one line below "test", in column 1 /test/e on the last t of "test" /test/s+2 on the 's' of "test" /test/b-3 three characters before "test"
A special offset is
; which lets you position the cursor by doing a second
search (normally within the same line as the original match). E.g.
which will position the cursor on the
errors part of each search match.
Useful for repeating common changes in a buffer using