This is a non-comprehensive list of Vim keybindings.
Search and Jump Between Matches
Start a search while in Normal Mode by using /pattern
, then pressing Enter
.
Jump between matches with n
(next) or N
(previous)
Find and Replace
To find a replace all instances of a pattern in a file:
:%s/pattern/replacement/g
Indent
To indent multiple lines at once, highlight all of the desired lines, then use >