Mailinglist Archive: opensuse (795 mails)

< Previous Next >
Re: [opensuse] tumbleweed and vim question
Hi,

On Sat, 2017-11-04 at 12:36 +0000, Wols Lists wrote:
On 04/11/17 12:30, Bernhard Voelker wrote:
--> pastes something completely outdated. The same happens
in xterm, so somehow the copy/paste into vim in a sudo session
is the problem - but it works perfectly with the regular user.

Something to do with sharing copy/paste buffers?

I have the same sort of problem pasting between linux and Windows
VirtualBox. It's a case of finding the right place to fix the
settings :-(

I've also run into this problem with the clipboard. Vim provided by
Factory is compiled without +clipboard support. You can check this
with:

vim --version | grep clipboard
# Should see +clipboard and/or +xterm_clipboard if supported

To get a version with clipboard support you can install gvim. Note:
This does come with a lot of extra features you may not use/want.

With clipboard support you can now set vim to use the system clipboard:

# ~/.vimrc
set clipboard=unnamedplus

More info on the Vim clipboard and registers can be found here http://v
im.wikia.com/wiki/Accessing_the_system_clipboard.


Cheers,
Wol


Cheers,

--
Sean Marlow
Public Cloud Developer
sean.marlow@xxxxxxxx
< Previous Next >