Friday, March 8, 2013

Re: Cut and paste w/mouse

On Friday, March 8, 2013 10:41:52 AM UTC-6, TommyB wrote:
> Hey Folks,
>
> I'm a longtime unix/linux commandline vi user, and work mostly at the console.
> Does dinosaur come to mind? Well anyway...
>
> Recently I've started using vim and like the automatic formating and highlighting features.
>
> In vi, I can use the mouse to copy something from another terminal and paste it into the file I'm editing.
>
> I can't figure out a way to do that with vim. I copy something with the left mouse button, press "i" to insert and then press the right mouse button.
> The -- (insert) VISUAL -- mode comes up with a bunch of highlighted lines.
>

Try from either Normal or insert mode, the middle mouse button, if you insist on using the mouse.

If you prefer the keyboard, from Normal mode you paste from the primary selection clipboard with "*p or from the system clipboard with "+p. From Insert mode it's CTRL+R followed by * or +.

This assumes that your Vim was compiled with clipboard support, compiled with mouse support, and that the mouse is turned on in the options (e.g. :set mouse=a).

Check the output of :version to make sure your Vim is compiled with clipboard support. If not, you'll need to upgrade before you can interact with the system 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

---
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment