Record and play macro
Macros automate repetitive edits in vim
qa (record into a)
q (stop)
@a (play)
10@a (play 10 times)
- tool
- vim10 commands
More vim commands
-
:set numberToggle line numbers on (use :set nonumber to hide)
-
:vsplit other.txtVertical split; use Ctrl-w + arrow to navigate panes
-
:wqWrite file and quit vim
-
:q!Force quit discarding all changes
-
:%s/old/new/gcReplace all occurrences interactively (c = confirm)