Advertisement
Fairly uncommonly, as I'm editing a file and mistype a command I'll somehow make Vi go apeshit, during which time a "Help" buffer pops up, and the word "recording..." shows at the bottom of the screen. I'm generally able to get it to go away after several attempts to simply give up and :q but more importantly, what is this Record feature and when do you use it most?
Advertisement
Advertisement
-
Re: Recording...
Mon, May 1, 2006 - 1:16 PMI use 'q' about once a week now, although that use to happen to me all the time too!
the way it works:
. you hit 'q', and then another character, like 'a'
. you'll see 'recording' at the bottom of the window, and vi is recording your keystrokes
. when you're done with what you want to record, hit 'q' while in command mode again.
. after that, you can get vi to do the same command again by using '@' and then the character you picked before.
I mostly use it when I want to change something on every line, but don't have the regular expression fu.