Macros

Automate repeated actions.

  • qa start recording
  • q stop recording
  • @a play macro
  • @@ repeat last macro

Registers

Work with yank/delete/paste storage.

  • :reg for more
  • "ayy yank into register a
  • "ap paste from register a
  • "Ayy append to register a

Useful Registers

RegisterPurpose
"Default register
0Last yanked text
1-9Delete history
a-zNamed registers
A-ZAppend to named registers
+System clipboard
*Selection clipboard (Linux/X11)
%Current file name
:Last command
=equal register