On Nov 8, 4:25 pm, Michael Scheper <[email protected]> wrote:
> If I use cw, 'green' clobbers 'yellow' in the
> register,

If you've yanked 'yellow', then 'yellow' will be in the unnamed
register, but also in the numbered register 0. See :help quote_number.
Or, you could change to the black-hole register. Just like you can use
"add to delete a line and put it in the 'a' register, you can "acw to
change a word and put the old word in the 'a' register, or "_cw to
change a word and not put the old word anywhere.

> and I don't know of a way to paste in insert mode anyhow.

CTRL-R in insert mode inserts the contents of a register. Press CTRL-R
and then the name of the register to paste in insert mode. For
example, CTRL-R " pastes the unnamed register, and CTRL-R 0 pastes the
last yanked text (probably what you want). If your yanked text
includes control characters like ^M or ^H you'll want to use CTRL-R
twice. See :help i_CTRL-R. This also works on the command line.

I believe the tip John mentions may allude to all this (or at least it
should), but I didn't see it in the 3-second glance I gave the tip.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to