Vi and Vim Macro Tutorial: How To Record and Play
High Level Steps to Record and Play inside Vim
- Start recording by pressing q, followed by a lower case character to name the macro
- Perform any typical editing, actions inside Vim editor, which will be recorded
- Stop recording by pressing q
- Play the recorded macro by pressing @ followed by the macro name
- To repeat macros multiple times, press : NN @ macro name. NN is a number
Read full article from Vi and Vim Macro Tutorial: How To Record and Play
No comments:
Post a Comment