How I record and repeat a set of key sequences?

You can use the ‘q’ command in normal mode to record a set of key sequences and store it in a register. For example, in the normal mode you can press q followed by a register name {0-9a-bA-Z”} to start the recording. To end/stop the recording press q again. You can playback/repeat the recorded key sequences by pressing @ followed by the register name. e.g. @a. Another approach is to start Vim with the “-w” command-line argument.

    $ vim -w 

Vim will record all the characters typed in the session in the specified file “file_name”. You can use the recorded file with the “-s” command line argument to play it back:

    $ vim -s 

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...

Speak Your Mind