Wednesday, April 18, 2012

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

Thank you everyone for the help!

On 18 April 2012 18:25, John Beckett wrote:
> The following writes @@ (that is, @") to /dev/clipboard:
>   :call writefile(split(@@, "\n"), '/dev/clipboard')

Works like a charm.

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

Unfortunately the "+clipboard" for Cygwin uses the X-Windows
clipboard, not the native Windows clipboard. In this case
/dev/clipboard is a way to access the native Windows clipboard within
Cygwin. It has the benefit of understanding utf-8 which
putclip/getclip currently do not.

Thank you for the tip!

Chris

--
Chris Sutcliffe
http://emergedesktop.org
http://www.google.com/profiles/ir0nh34d

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