On Jan 5, 9:49 pm, Michal Dorsett <[email protected]> wrote:
> Thank for your response. I have a few questions:
>
> 1. How do I include '=repeat...' in the recording?

While recording, just type the quote character to start register
selection, then the = character to select the expression register.
This should bring up a prompt for an expression.

See :help @= and :help quote

> 2. What is the final 'p' after the '^M'?

This pastes the result of evaluating the expression register into your
buffer. It's just like "ap except that you use the expression
register, "=.

See :help copy-move

> 3. Is there a way to edit recordings?
>

Yes, someone gave one way to do so, by pasting the register contents,
editing, and yanking back.

You can also do it on the command-line for simple registers,
using :let. For example, if you recorded to register 'a' you can:

:let @a='commands you want in register a'

See :help :let-@

If you're doing this, it will be useful to insert the current register
contents. Using <C-R><C-R>a (two CTRL-R presses, followed by the 'a'
key) will insert the entire contents of the @a register literally.
See :help c_CTRL-R_CTRL-R.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to