Wednesday, April 18, 2012

RE: echoing the contents of a registry to a /dev device

Tim Chase wrote:
> You're awfully close, but I think you're reaching for the
> wrong register.

No, @@ is another name for @" (see ':help @r'). Using " can
cause issues in some circumstances since it starts a comment.
It's easy to try this. Yank a couple of words then:
:echo @@

The following writes @@ (that is, @") to /dev/clipboard:
:call writefile(split(@@, "\n"), '/dev/clipboard')

However, what the OP should do is build Vim with clipboard
support (using :version should show "+clipboard").

John

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

No comments: