According to http://www.vim.org/html/repeat.html#q

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}

All commands and command sequences can be repeated by putting them in a named
register and then executing it.  There are two ways to get the commands in the
register:
- Use the record command "q".  You type the commands once, and while they are
  being executed they are stored in a register.  Easy, because you can see
  what you are doing.  If you make a mistake, "p"ut the register into the
  file, edit the command sequence, and then delete it into the register
  again.  You can continue recording by appending to the register (use an
  uppercase letter).


So, it appears, according to this that you turn recording on by hitting q and 
then a register to put it in, and turn it off by just typing q.  

mg


On Saturday 06 April 2002 14:29, J. Craig Woods wrote:
> Randy Kramer wrote:
> > Thanks, but IIRC, that didn't work for me (that was one of the things
> > that I know I tried).  Sometimes when I was in recording *and* insert
> > mode, one or more <esc>s got me back to recording mode only, but did not
> > cancel recording mode.
> >
> > Guess I'll have to try it again next time, except I hope there is no
> > next time. ;-)
>
> OK, I'll bite. I can always learn something new, and enjoy it. What is
> "recording mode" in vi? I know you don't mean insert mode, and I don't
> think you are talking about the commands for copy and pasting. So do
> help me out, and let me know what I am missing. It is probably some
> function I should know..
>
> Thanks,
> J. Craig Woods
> UNIX SA

----------------------------------------
Content-Type: text/plain; charset="us-ascii"; name="message.footer"
Content-Transfer-Encoding: 8bit
Content-Description: 
----------------------------------------

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to