Vim: modifying a Macro

Опубликовано: 27 Апрель 2026
на канале: learnbyexample
121
2

Vim registers are shared across recording, delete and yank commands. When you call a macro using `@`, the register content is treated as the sequence of commands to be executed. So, editing a register's content will
automatically update the behavior of the macro as well. Knowing that you can modify a macro also helps if you make a mistake — you can choose to finish the recording and update later instead of restarting the recording.


This video is based on my "Vim Reference Guide" ebook: https://github.com/learnbyexample/vim...