Re: Automating Vi Commands
> I use Vi regularly and know that <SHIFT> <J> will append lines, putting aSounds exactly like the definition of vim's macros. In normal mode, just
> number in fromt of the command will cause Vi to append that many lines to
> the current line.
> My quation is can this be automated,
press "q" followed by a letter (to name the register into which the macro is
recorded), do your stuff, and press "q" again to end recording. At that
point, you can do use the "@" followed by that letter to execute the
recorded macro. The @ can be preceeded by a count as well, so
will <do stuff> 26 times (the original, and 25 more).
For more info, check out ":he recording".