You are not logged in.

#1 2010-01-24 17:29:00

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

System Yank Register in Vim+URxvt Without Mouse [SOLVED]

As I understand it, to use the system clipboard you have the choice of the selection or the cut buffer that are accessed through vim's * and + registers.
But as far as I can tell, this feature doesn't work with the vim from the repository. Older threads refer to it as working but I cannot get it to work, and I suspect vim was built without support for X.

There is of course the workaround to do a Shift-LMB drag which bypasses vim and has the intended effect, but this impractical when you don't have a mouse.

So how can I get the * and + registers working? If they were disabled, why? Or am I just being stupid?

Advice is greatly appreciated.

Last edited by egan (2010-01-24 21:13:26)

Offline

#2 2010-01-24 19:25:18

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427
Website

Re: System Yank Register in Vim+URxvt Without Mouse [SOLVED]

Just rebuilt vim with --with-x=yes. See abs entry in the archwiki for more information about rebuilding arch packages.

Offline

#3 2010-01-24 19:58:33

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: System Yank Register in Vim+URxvt Without Mouse [SOLVED]

Nepherte wrote:

Just rebuilt vim with --with-x=yes. See abs entry in the archwiki for more information about rebuilding arch packages.

Just as I feared I guess. Does anyone know why --with-x was disabled on the vim package?

Offline

#4 2010-01-24 20:00:29

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: System Yank Register in Vim+URxvt Without Mouse [SOLVED]

This is probably the best source:

http://bugs.archlinux.org/task/14609

Offline

#5 2010-01-24 21:03:44

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: System Yank Register in Vim+URxvt Without Mouse [SOLVED]

So my choices are to rebuild vim with x enabled or to install the gvim package. Does anyone know what other things are enabled on the gvim package for the vim binary?

Offline

#6 2010-01-24 21:10:35

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: System Yank Register in Vim+URxvt Without Mouse [SOLVED]

I'd just install the "gvim" package.  You can still use regular console vim, but its built with X so you can do what you want.  Seems reasonable to me.

Offline

#7 2010-01-24 21:13:11

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: System Yank Register in Vim+URxvt Without Mouse [SOLVED]

tom5760 wrote:

I'd just install the "gvim" package.  You can still use regular console vim, but its built with X so you can do what you want.  Seems reasonable to me.

Yeah, I just did. I was worried that it would be too heavy or whatever but it seems fine, and copy and paste works. And back when I was in Ubuntu I stilled used GVim so I am okay with it.

Offline

Board footer

Powered by FluxBB