buhfur

For all things in my brain

View on GitHub

Vim

Quick reference for all the options for your vimrc file

link

How to use macros

  1. 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.

  2. then , start entering the sequence you would like to repeat

  3. 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