views:

205

answers:

2

I'm used to most X11 apps that copy'n paste with a simple middle mouse key. In vim I must remember to hold the shift key. Is there any way in vim to copy'n paste using the mouse without the shift key?

+1  A: 

I believe you don't need the shift key if you're in insert mode.

Edit: Actually, I never need to hit shift.

Stephen
A: 

I needed to get the vim with the GTK2-GNOME GUI libs.

before the Ubuntu Karmic install was VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 21 2009 11:25:46) Included patches: 1-245 Compiled by [email protected] Huge version without GUI. Features included (+) or not (-):

now the version is VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Sep 21 2009 11:22:21) Included patches: 1-245 Compiled by [email protected] Huge version with GTK2-GNOME GUI. Features included (+) or not (-):

Now the left mouse button selects and pastes in to X apps.

bitbucket