Recording...

topic posted Tue, April 25, 2006 - 4:59 PM by  Gabriel
Share/Save/Bookmark
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?
posted by:
Gabriel
Advertisement
Advertisement
  • Re: Recording...

    Mon, May 1, 2006 - 1:16 PM
    I 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.

Recent topics in "Vi"

Topic Author Replies Last Post
Capitalises last entered letter Bearterrible 5 December 16, 2008
I love VI!! Steven 2 December 22, 2007
How many people use VI-style keybindings with readline (inc. B... Steven 2 December 18, 2007
slightly n00b question Alex 24 August 27, 2007