On 19 April 2012 01:00, John Beckett wrote:
> Thanks for info, but the code is going to cost you!
>
> We have this tip:
> http://vim.wikia.com/wiki/Using_the_Windows_clipboard_in_Cygwin_Vim
>
> and it needs some cleaning. Editing the wiki would be best, but
> if that does not appeal, please tell me what needs to be done.
I guess since I'm the original author of the tip, I should keep it up
to date. :)
> Is there anything there that should be deleted as a duplicate or
> obsolete or misguided? I guess you are saying the stuff which
> uses putclip needs at least a disclaimer that it fouls up utf-8?
I've updated the wiki commenting out the putclip / getclip lines and
adding a comment as to why. Given that the /dev/clipboard is a new
addition to Cygwin, I wanted to leave the putclip / getclip methods
there since they would need to be uses in earlier versions of Cygwin
(i.e. 1.6, etc.).
> Can readfile be used to do a paste? Like one of:
>
> :let @@ = join(readfile('/dev/clipboard'), "\n")
That also works very nicely, so I've added this to wiki tip as well.
Thank you again for the tips, as the utf-8 limitation of putclip /
getclip was really annoying.
Cheers!
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:
Post a Comment