Record and play a macro
Macros repeat the same edits for you in vim
qa (record into a)
q (stop)
@a (play)
10@a (play 10 times)
- tool
- vim10 commands
More vim commands
-
:set numberTurn on line numbers; :set nonumber hides them
-
:vsplit other.txtSplit vertically; press Ctrl-w, then an arrow key to move between panes
-
:wqWrite the file and quit vim, the most searched skill in IT
-
:q!Force quit and throw away all changes
-
:%s/old/new/gcReplace all matches and confirm each one (c)