Re: Clipboard copy and paste
On 23/10/15 18:56, S Python wrote: > I had kept trying to use gg"*yG based on what I read elsewhere with no luck > but was able to successfully use gg"+yG instead I find :%yank+ quicker and easier to type There is something about an unmatched quote that I find unsettling... :-) Tim F (no relation) -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clipboard copy and paste
On 2015-10-26 09:00, Tim Ferguson wrote: > I find :%yank+ quicker and easier to type If you're looking for faster-and-easier, you can reduce that to just :%y+ which I use on a regular basis. -tim (the original "tim" to whom "S Python" was replying, and I'm glad my post was useful) -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clipboard copy and paste
On 10/26/2015 08:47 AM, Tim Chase wrote: On 2015-10-26 09:00, Tim Ferguson wrote: I find :%yank+ quicker and easier to type If you're looking for faster-and-easier, you can reduce that to just :%y+ which I use on a regular basis. -tim (the original "tim" to whom "S Python" was replying, and I'm glad my post was useful) Tim and Tim -- Thank you both! -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clipboard copy and paste
> Ah, then you want the "+ register. On X systems (Linux, BSD, etc), > there are two clipboards[*], one is the "primary selection" > clipboard, accessed with "* as you mention. This is the one that is > also fed by selecting things in a terminal and retrieved by using > the middle-mouse. The other is the "clipboard" clipboard (I can't > say I care much for the terminology, but that's history for you). > This one is accessed with vim's "+ register and is usually what > other applications access when doing a cut/copy/paste that you're > used to. > > I've just taken to using "+ almost all the time on all platforms, > since that's *usually* what I mean, unless it's a rare time I want > to convert a primary-selection to a clipboard-selection, in which > case it's often easiest for me to do that with vim: > > :let @+=@* > > Hope that makes better sense of it, > > -tim > > > [*] > my understanding is that there are multiple selection clipboards, > but that just about no apps actually use it Sorry for reviving such an old post but I was having the same issue as the OP in trying to copy all of the lines from a text file into the system clipboard so that I could paste (via Ctrl-V) it into another application. I had kept trying to use gg"*yG based on what I read elsewhere with no luck but was able to successfully use gg"+yG instead based on Tim's response. Glad I came across his reply! -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Clipboard copy and paste
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
Re: Clipboard copy and paste
On Thursday, November 8, 2012 10:51:56 AM UTC-6, Ed Kostas wrote: 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? CTRL-V is useful, you probably don't want to remap it. Although, if you do, CTRL-Q is a synonym. See :help CTRL-V, i_CTRL-V, c_CTRL-V. Pasting from the same clipboard used by the center wheel in Vim is done by selecting the * register for paste, like this: *p Or in insert mode: C-R* These are examples, as there are many paste commands in Vim that do something slightly different. The key is to select the * register with * first. Note, it IS possible to remap CTRL-V to something like *p, but not really recommended. -- 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
Re: Clipboard copy and paste
On Thursday, November 8, 2012 2:45:15 PM UTC-3, Ben Fritz wrote: On Thursday, November 8, 2012 10:51:56 AM UTC-6, Ed Kostas wrote: 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? CTRL-V is useful, you probably don't want to remap it. Although, if you do, CTRL-Q is a synonym. See :help CTRL-V, i_CTRL-V, c_CTRL-V. Pasting from the same clipboard used by the center wheel in Vim is done by selecting the * register for paste, like this: *p Or in insert mode: C-R* These are examples, as there are many paste commands in Vim that do something slightly different. The key is to select the * register with * first. Note, it IS possible to remap CTRL-V to something like *p, but not really recommended. Hi, Ben. I think that I was not clear enough. I don't want to remap Ctrl-V. What I want is to copy something to the clipboard while I am using Vim. In this case, I want to use the normal Vim commands for copying to the clipboard. For example: *yy Then, I will go to another application. Say, I will go to gedit. While using gedit, I want to paste the contents of the clipboard (that I put there using *yy while I was in Vim) into the gedit text. From gedit, I want to paste using Ctrl-V, instead the central whell of the mouse. It seems that Vim *yy command has access to the central wheel clipboard, but not to the Ctrl-V clipboard. I want to know which command give access to the Ctrl-V clipboard. -- 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
Re: Clipboard copy and paste
I think that I was not clear enough. I don't want to remap Ctrl-V. What I want is to copy something to the clipboard while I am using Vim. In this case, I want to use the normal Vim commands for copying to the clipboard. For example: *yy Then, I will go to another application. Say, I will go to gedit. While using gedit, I want to paste the contents of the clipboard (that I put there using *yy while I was in Vim) into the gedit text. From gedit, I want to paste using Ctrl-V, instead the central whell of the mouse. It seems that Vim *yy command has access to the central wheel clipboard, but not to the Ctrl-V clipboard. I want to know which command give access to the Ctrl-V clipboard. Ah, then you want the + register. On X systems (Linux, BSD, etc), there are two clipboards[*], one is the primary selection clipboard, accessed with * as you mention. This is the one that is also fed by selecting things in a terminal and retrieved by using the middle-mouse. The other is the clipboard clipboard (I can't say I care much for the terminology, but that's history for you). This one is accessed with vim's + register and is usually what other applications access when doing a cut/copy/paste that you're used to. I've just taken to using + almost all the time on all platforms, since that's *usually* what I mean, unless it's a rare time I want to convert a primary-selection to a clipboard-selection, in which case it's often easiest for me to do that with vim: :let @+=@* Hope that makes better sense of it, -tim [*] my understanding is that there are multiple selection clipboards, but that just about no apps actually use it -- 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
Re: Clipboard copy and paste
On Thursday, November 8, 2012 7:23:52 PM UTC-2, Tim Chase wrote: I think that I was not clear enough. I don't want to remap Ctrl-V. What I want is to copy something to the clipboard while I am using Vim. In this case, I want to use the normal Vim commands for copying to the clipboard. For example: *yy Then, I will go to another application. Say, I will go to gedit. While using gedit, I want to paste the contents of the clipboard (that I put there using *yy while I was in Vim) into the gedit text. From gedit, I want to paste using Ctrl-V, instead the central whell of the mouse. It seems that Vim *yy command has access to the central wheel clipboard, but not to the Ctrl-V clipboard. I want to know which command give access to the Ctrl-V clipboard. Ah, then you want the + register. On X systems (Linux, BSD, etc), there are two clipboards[*], one is the primary selection clipboard, accessed with * as you mention. This is the one that is also fed by selecting things in a terminal and retrieved by using the middle-mouse. The other is the clipboard clipboard (I can't say I care much for the terminology, but that's history for you). This one is accessed with vim's + register and is usually what other applications access when doing a cut/copy/paste that you're used to. I've just taken to using + almost all the time on all platforms, since that's *usually* what I mean, unless it's a rare time I want to convert a primary-selection to a clipboard-selection, in which case it's often easiest for me to do that with vim: :let @+=@* Hope that makes better sense of it, -tim Well, Tim. I tested the + register and it worked as expected. On vim, I saved text into the + register, and recovered it on Emacs, by pressing Ctrl-Y. Thank you for your answer. This group is really good. I am learning how to use Vim really fast, thanks to the members of this group. -- 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