You are not logged in.

#1 2024-05-24 20:42:58

ch0maru
Member
Registered: 2024-05-24
Posts: 3

[SOLVED] vim clipboard strangeness

I'm running ArchLinux on a VirtualBox VM. KDE. Things work.

But vim... I've got some weird clipboard behaviour going on.

I have installed gvim (9.1). I'm seeing +clipboard when I

vim --version

And this, from my .vimrc:

syntax on
filetype on
set shiftwidth=4 smarttab
set expandtab
set clipboard=unnamedplus
set number

So....

I can copy from vim in one konsole tab, and paste to vim in another konsole tab.
I can copy from vim in the konsole and paste to an external app.
I can copy from an external app, and paste into gvim.
But.
I can't copy from an external app, and paste into vim.
With this exception:
I can copy text from my host machine and paste this to my guest (that's the ArchLinux VM) - including directly into vim in the konsole!!

Anyone, any ideas, greatly appreciated

Last edited by ch0maru (2024-05-25 12:48:24)

Offline

#2 2024-05-25 06:56:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,979

Re: [SOLVED] vim clipboard strangeness

https://bbs.archlinux.org/viewtopic.php?id=293952 though the last post suggests it ha been fixed (but w/o any reference to a pot. fix)

Offline

#3 2024-05-25 12:28:04

ch0maru
Member
Registered: 2024-05-24
Posts: 3

Re: [SOLVED] vim clipboard strangeness

Update, on receipt of seth's pass.

I changed the Session to Plasma (X11) on the login screen and all works.

For Plasma (Wayland), to enable the kind of vim-anotherapp-vim clipboard behaviour I'm looking for, I used Jason Cox's vim-wayland-clipboard plugin.

Thank you

Offline

Board footer

Powered by FluxBB