On Thu, Sep 30, 2010 at 2:57 PM, Alexander Dietz <alexander.diet...@googlemail.com> wrote: > Hi, > > first of all thanks for a reply, although it does not answer all of my > question. > > > On Thu, Sep 30, 2010 at 18:05, Ven Tadipatri <vtadipa...@gmail.com> wrote: >> >> Well, this doesn't answer the question I asked earlier about using >> visual mode to copy and paste. >> But if you use xclip to copy, > > (what is xclip???)
xclip is a utility that allows you to use the clipboard on Linux machines that use X11: http://sourceforge.net/projects/xclip/ Copy and paste is such a basic functionality, and I'm really surprised that vim doesn't have a nice platform-independent way of handling this. Actually even a platform-dependent way of copying and pasting would work - it would just be nice if this were better documented somewhere. >> >> If you can find a way to copy that's not as messy as putting this >> in your .vimrc, please let me know: >> vmap <C-c> :<Esc>`>a<CR><Esc>mx`<i<CR><Esc>my'xk$v'y!xclip -selection >> c<CR>u >> That was something I figured out the painful way. What I basically do is take the text to copy, put it on its own line, mark the beginning of it, mark the end of it, and send it to xclip, which sends it to the clipboard. But now, since the command executed, it wiped out the text you wanted to copy, so I put a u at the end to undo it. If there's a hall of fame for vim hacks, this should definitely go on it! > > > with this unreadable mix of letters and characters, I am now able to use > functionalities 1 and 2 of my have-to list (with having the shift key to Wait, so then you must have xclip on your machine, if you got it to work, right? > press in addition). I still cannot paste text, which I have marked with the > mouse, to vim or a different editor. > > Maybe there is still a way to configure vim in the right way? Are no vim > specialists on this list? I'm working on the paste part myself, but I'm having difficulties getting my ctrl+shift+v to work (it works on Linux, but not in Cygwin). I played around a bit with the inputrc and now when I want to paste, it puts me into visual mode - great. Pardon my sarcasm, but yes, it bothers me a bit when we need to ask a "vim specialist" on how to get copy and paste working. It should definitely not be this complicated. I wonder, how do all the vim users on this list use copy and paste? Thanks, Ven > > > Thanks > Alex > > >> Thanks, >> Ven >> -- 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