On 15/07/09 15:00, [email protected] wrote:
>
> Hello,
>
> I d like to yank the currently visual selected text into register c through
> the command line .
> I tried this:
>
> :'<,'>normal "cy
>
> and this (removing the automatically inserted area in front of the command)
>
> :normal "cy
>
> but register c is not touched.
>
> How can I do this yank?
>
>
> Thank You
>
> Joachim
For a linewise selection:
:'<,'>y c
(the '<,'> is automagically inserted when you hit : in Visual mode).
See
:help :yank
For a blockwise selection, I think there is a plugin on Dr.Chip's site
http://mysite.verizon.net/astronaut/vim but I don't know the details.
For a characterwise selection, maybe gv as Ben said.
Best regards,
Tony.
--
"I used to get high on life but lately I've built up a resistance."
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---