tags:

views:

305

answers:

5

OK, here is the thing -- I keep on seeing Recording message at the bottom of my gvim 7.2 windows. Sort of annoying!

What is it? how to turn it off? what is it used for? explains. explanation, directions are appreciated!

thanks

+2  A: 

It means you're in "record macro" mode. This mode is entered by typing q followed by a register name, and can be exited by typing q again.

John Millikin
It's actually entered by typing `q` followed by any register name, which is 0-9, a-z, A-Z, and ".
ephemient
Actually, it's q{0-9a-zA-Z"} - you can record a macro into any register (named by digit, letter, "). In case you actually want to use it... you execute the contents of a register with @<register>. See `:help q` and `:help @` if you're interested in using it.
Jefromi
Thanks, corrected.
John Millikin
+5  A: 

It sounds like you have macro recording turned on. To shut it off, press q.

Refer to ":help recording" for further information.

Related links:

Tim Henigan
+11  A: 

You start recording by 'q<letter>' end you can end it by typing 'q' again.

Recording is a really useful feature of Vim.

It record all what you type. And it you can replay it simply by typing '@<letter>'. Record search, movement, replacement...

One of the best feature of Vim IMHO.

yogsototh
As seen other places, it's q followed by a register. A really cool (and possibly non-intuitive) part of this is that these are the *same* registers used by things like delete, yank, and put. This means that you can yank text from the editor into a register, then execute it as a command.
Jefromi
A: 

As others have said, it's macro recording, and you turn it off with q. Here's a nice article about how-to and why it's useful.

JeffH
+2  A: 

Type :h recording to learn more.

         *q* *recording*
q{0-9a-zA-Z"}           Record typed characters into register {0-9a-zA-Z"}
                        (uppercase to append).  The 'q' command is disabled
                        while executing a register, and it doesn't work inside
                        a mapping.  {Vi: no recording}

q                       Stops recording.  (Implementation note: The 'q' that
                        stops recording is not stored in the register, unless
                        it was the result of a mapping)  {Vi: no recording}


                                                        *@*
@{0-9a-z".=*}           Execute the contents of register {0-9a-z".=*} [count]
                        times.  Note that register '%' (name of the current
                        file) and '#' (name of the alternate file) cannot be
                        used.  For "@=" you are prompted to enter an
                        expression.  The result of the expression is then
                        executed.  See also |@:|.  {Vi: only named registers}
ephemient