Abhi Yerra

Rants of lunatic

Vim Macros

leave a comment »

[tags]vim, macros[/tags]

I learned how to use Vim macros yesterday well some of them anyways. Here is what is to be done:

  • In the ESC mode press q then a letter to assign the macro to a variable.
  • It should say recording at the bottom and you can do whatever you want.
  • Get into ESC mode and press q to stop recording the macro.

    Now to use that macro do the following:

  • Press Shift-2.
  • Press the letter that you assigned the macro to.

    That is the basics of it.

Written by abhiyerra

October 13, 2006 at 8:19 pm

Posted in all

Leave a Reply