Difficulty using vim within xfce4-terminal

49 views
Skip to first unread message

Mark Waggoner

unread,
Feb 25, 2025, 12:43:00 AMFeb 25
to vim_use
I recently started using xfce4-terminal, and have found that if I run vim in that terminal vim is unable to own the x selection as evidenced by the highlighting during visual selection.  Instead of reverse video, it is grey'd text.  It is also evidenced by the fact that despite having things set up to automatically copy the visual selection to the clipboard, the selected value is no longer available for pasting if vim is suspended or exited.

Works fine from good old xterm, but I'd like it to work in xfce4-terminal as well.

Any advice?

vim version;
VIM - Vi IMproved 9.1 (2024 Jan 02)
Included patches: 1-836

Grant Taylor

unread,
Feb 25, 2025, 2:12:26 AMFeb 25
to vim...@googlegroups.com
On 2/24/25 6:43 PM, Mark Waggoner wrote:
> Any advice?

I don't know if this is the case for you or not, but it almost sounds
like mouse support has been enabled in vim.

Try running `:set` and looking to see if mouse is set to anything.

I routinely run `:set mouse=` w/o any parameter to disable vim's
integrated mouse support.

Maybe it will help you get back to what you're used to.



--
Grant. . . .

Mark Waggoner

unread,
Feb 26, 2025, 11:13:31 PMFeb 26
to vim_use
Yes, mouse support is enabled, and that's the way I want it!   (mouse=a).  As I noted, this works fine in xterm, but when used in xfce4-terminal, it does not.

Paul

unread,
Mar 6, 2025, 10:20:48 AMMar 6
to vim...@googlegroups.com
On Wed, Feb 26, 2025 at 03:13:31PM -0800, Mark Waggoner wrote:
> Yes, mouse support is enabled, and that's the way I want it!   (mouse=a).  As I noted, this works fine in xterm,
> but when used in xfce4-terminal, it does not.
> On Monday, February 24, 2025 at 6:12:26 PM UTC-8 Grant Taylor wrote:

Just to double check, when in xfce4-terminal, what do `:echo has('clipboard')` and `:set mouse? clipboard?` show?

Mark Waggoner

unread,
Mar 10, 2025, 6:55:56 PMMar 10
to vim...@googlegroups.com
Thanks for the reply.  To answer your questions:

:echo has('clipboard') 
1

:set mouse? clipboard?
  mouse=a
  clipboard=autoselect

I've now discovered that the difference is some kind of difference in the way xterm and xfce4-terminal do the paste, not in the way vim is working.
  • Open vim in xfce4-terminal
  • Select some text
    • Middle click paste into xterm works
    • Middle click paste into a different xfce4-terminal works
  • Deselect text and exit vim in the 
    • Middle-click paste into xterm works
    • Middle-click paste into xfce4-terminal does NOT work
This gives me some clues:
:help x11-selection


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/Z8l2yFvvpW0EUP92%40kitt.
Reply all
Reply to author
Forward
0 new messages