On Tue, Oct 12, 2010 at 8:42 AM, Ajay Jain <[email protected]> wrote: > Hi, > > I am facing quite some issues with copy paste on vim. I expected
It looks like a lot of people are having issues with copy and paste on vim. I think that this is definitely an issue that needs to be addressed with the next version of vim. Or, what would perhaps be easier, the wiki should be updated with some different approaches on how to get copy and paste working. > things to work nicely in the default state, but I am wrong as I > believe we need to do some key mappings. My .vimrc is simple: It only Key mappings is one approach If you are able to install xclip, you could call that whenever the desired key combo is pressed, but I had to play around a bit with the syntax to get it to work. You could copy in visual mode, by selecting the text you want, and running whatever key combo you have a vmap for in your vimrc. On Windows Cygwin, the /dev/clipboard gives you access to the clipboard, so you can copy and paste to it. Another option someone suggested is running gvim -v instead of vi. I had other issues with this, but it seemed that at least on Linux, the + buffer was working correctly to copy and paste from the system clipboard. > has the following line: > source $VIMRUNTIME/vimrc_example.vim > However, the issue is that copy paste from Vim to Xterm does not work > fine. I looked over the Internet to find that I need to add set > mouse=r so that the copy paste with mouse works properly. Now I see > that copy paste Using Ctrl-Insert, Shift-Insert, Ctrl-Delete does not > work properly. > Could somebody please help me with the basic settings? What all is > required to be put in addition to the default so that copy paste using > Ctrl/Shift/Insert & Mouse works seamlessly? I've been struggling with this for a while, and so far there doesn't really seem to be a good, clean (as in not some elaborate clunky key mapping in the vimrc), platform independent (works without relying on xclip or Cygwin's clipboard) solution to get copy and paste working. > > Regards, > Ajay. > Regards, 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
