Vim
Macros
Command | Note |
---|---|
q<letter> |
Start recording a macro that can be referenced by <letter> |
q |
Stop recording |
@<letter> |
Execute macro <letter> |
@@ |
Execute the last-executed macro |
- This is great, and much easier than I expected. This is literally as easy as macro functionality in Emacs (
C-x 0
, etc.) .
doesn’t appear to work to execute the last macro, and@@
is a tiny bit awkward.
Marks
Command | Note |
---|---|
m<letter> |
Set a mark that can be referenced by <letter> |
'<letter> |
Jump to beginning of line containing the <letter> mark |
`<letter> |
Jump to exact location of the <letter> mark |
<letter>
is case sensitive;A
anda
are diferent marks.- Uppercase marks are global, and work across files.
- Lowercase marks are specific to a single file.