Friday, August 29, 2008

vim : record and play

hmm.. i have been using vim for quite sometime now.. for the past 2 months, I am forced to
work on windows ( :-) very sad) as I moved to a new company.. but and i tried to install cygwin and that seemed to be much unstable.. so as the last resort option, i opted for slickEdit with vi emulation.. and all of a sudden i was thinking hard to recollect how i would be able to do 'record and play' in vi/vim... huh after sometime i realised it, here is how it should be done,

qa [ start recording]
do the blah stuff
q [ stop recording]
@a [ play once]
@22a [ play 22 times]

kool is it... this is the power of vi/vim.. happy vim-ing..

No comments: