On 06/12/12 14:58, richard emberson wrote:
> I'd like to yank some visually selected text with execute:
> :execute 'normal! v05l"+y'
> 
> But this indeed visually selected the 5 characters but
> does not yank them. Its as if the " is a comment
> character and not the start of a yank-to operation.

While I don't seem to have an issue with the command you suggest,
you can also do it with

  :let @+ = getline('.')[:4]

to pull character 0-4 (that is 1-5) from the current line.

-tim


-- 
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