tag:blogger.com,1999:blog-6580088942610704648.post4344632618507037258..comments2024-01-08T07:40:07.042+01:00Comments on Raphinou's blog: Using the clipboard in vimraphinouhttp://www.blogger.com/profile/10541528354162666577noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6580088942610704648.post-48013806287771541762009-01-29T16:52:00.000+01:002009-01-29T16:52:00.000+01:00thanks for your informative reply!paulthanks for your informative reply!<BR/><BR/>paulPaul Cobbauthttps://www.blogger.com/profile/12690770983694921987noreply@blogger.comtag:blogger.com,1999:blog-6580088942610704648.post-56800443597133105402009-01-23T19:13:00.000+01:002009-01-23T19:13:00.000+01:00Hi Paul,I can't speak for windows, i don't use it,...Hi Paul,<BR/><BR/>I can't speak for windows, i don't use it, but there's an X clipboard.<BR/><BR/>When you want to copy file from a vim terminal to, eg, a form in a web page, you use this clipboard (I think ;). Under X you can select the text with your mouse cursor, and paste it with a middle click. This method has drawbacks though, as some newlines might be added, or if display line numbers in vim, these are copied too. It's even worse if you use the vsplit command from vim.<BR/><BR/>The easiest way is to use this + register, then you can use CTRL-V in your browser to paste the text.<BR/><BR/>This doesn't work with a vim running on a remote server, as it doesn't have access to your local X clipboard.<BR/><BR/>As for your remark, when you exit vim, it writes in ~/.viminfo the state of your last sessions, including the states of the registers. Just take a look in that file and you should find the text you copied in the first vim session and pasted in the subsequently started vim (unless you have put something else in the register in the meantime of course ;-).raphinouhttps://www.blogger.com/profile/10541528354162666577noreply@blogger.comtag:blogger.com,1999:blog-6580088942610704648.post-80976732592153854332009-01-23T17:57:00.000+01:002009-01-23T17:57:00.000+01:00The clipboard ? Isn't that a window thingie ?Anywa...The clipboard ? Isn't that a window thingie ?<BR/><BR/>Anyway, when I do a dd or yy, then those lines can be pasted with p in another vim (fired up after the first vim).<BR/><BR/>Screencasts are welcome.Paul Cobbauthttps://www.blogger.com/profile/12690770983694921987noreply@blogger.com