The Power of q and @
Automate Repetitive Editing Tasks
Macros are Vim's automation superpower. They let you record a sequence of commands and replay them instantly, making repetitive editing tasks effortless. Perfect for bulk edits, formatting, and transformations.
Result: Record complex editing sequences once and replay them instantly across multiple locations.
Create a macro to convert each item into a numbered list item, then apply it to all items using number increment.
Create a macro to convert each item into a numbered list item, then apply it to all items using number increment.
Shopping List: - apples - bananas - oranges - grapes
Shopping List: 1. apples 2. bananas 3. oranges 4. grapes
Click "Start Tutorial" to begin your interactive Vim learning journey. You'll advance through each step at your own pace.
Congratulations on mastering Vim's automation superpower
Take your macro skills further:
5@a
Apply macro 'a' five times@@
Repeat the last macro executedqA
Append to existing macro in register 'a':reg
View all stored macros and registersMacros are one of Vim's most powerful features. Master them and you'll automate repetitive tasks like a true ninja!
The Vim tutorial experience is optimized for desktop. Please open this on a computer to get the full interactive experience.