I am trying to copy and paste things from vim into other applications. In general, there are two ways of pasting the clipboard contents. I can use Ctrl-V (Ctrl-Y in Emacs) or the central button of the mouse. The following solution works fine with the central button/wheel:
v move y
or v move "*y
In another application, one can press the central button, and voilà. For instance, in Emacs, I can press the central button, and I get the contents of the clipboard saved with "*y. However, I don't like this solution very much, since the central button is wheel in many mouses, and people can turn the wheel inadvertently. I prefer to press Ctrl-y in Emacs, or Ctrl-V in other applications (for instance, in gedit, or in this group). The problem is that Ctrl-V and Ctrl-Y do not work with the Vim "*y save register.
I checked the compilation of the vim distribution I am using. Thus:
~/vim/tutor$ vim --version | grep clipboard
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save
~/vim/tutor$
As you can see, I have +clipboard and +xterm_clipboard. Is there a way to send the contents of Vim Clipboard to Ctrl-V paste, instead of central wheel paste?
--
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
Thursday, November 8, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment