Vim
Quick reference for all the options for your vimrc file
How to use macros
-
use the “q” key to start recording. You can select any register to put the macro in, to view registers enter
:reg
on the command prompt. -
then , start entering the sequence you would like to repeat
-
afterwards, press “q” again to stop recording
To replay the macro
Press :
@@
Or to repeat multiple times
5@@
Useful keybinds
Ctrl-Z : suspends vim and writes process to a job , use
fg
to bring it back