How do I use a macro to generate a numbered list automatically?
By recording a macro that duplicates a line and increments its number, you can generate a numbered list of any length with a single replay command.
category:
macros
tags:
#macros
#editing
#normal-mode
#automation
#productivity
How do I use a macro to wrap each word in quotes?
How it works This macro wraps the current word in double quotes and moves to the next word, making it easy to repeat across a line or file.
category:
macros
tags:
#macros
#editing
#normal-mode
#insert-mode
How do I save a macro permanently in my vimrc?
How it works Macros recorded with q are stored in registers, but they are lost when you close Vim (unless you have the viminfo or shada file preserving them).
category:
macros
tags:
#macros
#registers
#config
How do I record a macro that processes one line and moves to the next?
How it works When recording a macro that you plan to repeat across multiple lines, the key technique is to end the macro positioned on the next line, ready for
category:
macros
tags:
#macros
#normal-mode
#editing
How do I use marks inside a macro to return to a specific position?
How it works When a macro needs to jump to different parts of the file and then return to a starting position, marks are the perfect tool.
category:
macros
tags:
#macros
#marks
#normal-mode
#editing