Search forward or backward
/ searches forward, ? searches backward, n/N go to the next or previous match
/pattern (n/N next/prev)
?pattern (backward)
- tool
- vim10 commands
More vim commands
-
:g/^#/dDelete all lines that start with # (comments)
-
gg=GGo to the top (gg) and re-indent to the end of the file (=G)
-
qa (record into a) q (stop) @a (play) 10@a (play 10 times)Macros repeat the same edits for you in vim
-
:set numberTurn on line numbers; :set nonumber hides them
-
:vsplit other.txtSplit vertically; press Ctrl-w, then an arrow key to move between panes