Ha,
Using gvim,
:execute 'normal! v05l"+y'
works.
It must be something about Fedora's console Vim.
On 06/12/2012 01:58 PM, Ben Fritz wrote:
On Tuesday, June 12, 2012 2:58:53 PM UTC-5, Richard 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.
I assume, like so much else with Vim, there is a way,
but I could not find it.
Works fine for me.
Both :execute 'normal! v05l"+y' and :normal! v05l"+y yank characters into the +
register for me.
You are actually correct that " is the start of a comment in Vim, however
inside quotes (as with your execute command) and after certain commands (like :map,
and apparently :normal also) it does not.
Is that execute command exactly what you typed? If so, what is your Vim
version? Does your system have a + register (i.e. does your Vim have clipboard
support compiled in)?
--
Quis custodiet ipsos custodes
--
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