You are not logged in.

#1 2014-09-08 10:07:15

rubick
Member
From: Czech Republic
Registered: 2013-02-11
Posts: 20

[SOLVED] Can't use + and * buffers in Vim

Hi, from some time my selection (*) and clipboard (+) buffers in Vim don't work. For example if I want to paste from clipboard buffer, I used to type:

"+p

But now, the command does nothing. I have option

set showcmd

in my .vimrc which displays typed command in right lower corner, and the command just disappears when I press + or * after the ", like this combination of keys was not supported. Pasting from other internal buffers like a-z works fine. I think this happened after update of xorg, and something changed regarding clipboard. Has anyone encountered this problem?

Last edited by rubick (2014-09-08 12:49:19)

Offline

#2 2014-09-08 10:16:01

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,721
Website

Re: [SOLVED] Can't use + and * buffers in Vim

Have you installed one of the gvim pacakges, or one of the vim{,-minimal} packages? gvim comes with X support (and by extension, clipboard support), regular vim does not.

EDIT:

vim --version | grep clipboard

Will tell you whether or not you have clipboard support compiled in. If you have "+clipboard", you have clipboard support, if you have "-clipboard", you do not.

Last edited by WorMzy (2014-09-08 10:18:33)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2014-09-08 12:49:03

rubick
Member
From: Czech Republic
Registered: 2013-02-11
Posts: 20

Re: [SOLVED] Can't use + and * buffers in Vim

Thanks for your advice. I had installed plain vim package as i don't use gvim. Command you have suggested revealed that i hadn't clipboard support. I solved this by intalling gvim package. Now I can use command line vim with clipboard support. Thank you. I am marking this thread as solved.

Offline

Board footer

Powered by FluxBB