Friday, January 26, 2024

Re: How to make gvim/vim-gtk3 behave exactly like vim

On 2024-01-26, Steve Litt wrote:
> Christian Brabandt said on Fri, 19 Jan 2024 17:50:11 +0100
>
> >On Fr, 19 Jan 2024, 'Ottavio Caruso' via vim_use wrote:
> >> I also use vim on xterm on Linux. It just is difficult cut/copy/paste
> >> data to/from, for example a web browser. Yes, it is possible, it is
> >> just not that neat.
> >
> >And why would those be different between terminal Vim and Gui Vim?
>
> Linux is a spectacular OS compared to Linux, but my workflow experience
> is that Windows cut and paste is much simpler and easier to use than
> Linux'. I'm not a fan of multiple paste buffers.
>
> Linux cut and paste is different on lxterminal vs xterm, different on
> xterm with and xterm without tmux, etc, so of course it will be
> different depending on whether Vim is GUI or hosted on a terminal
> emulator. These things aren't Vim's fault. The one thing I could blame
> on Vim is that Shift+',Shift+8,yy doesn't do what I think it would do,
> requiring middle mouse rather than Ctrl+v or Edit>Paste to paste.
> Shift+',Shift++,yy is more what you want, but even then Ctrl+V won't
> paste.

I agree that copy-and-paste with tmux is a pain (I just hold the
shift key down while selecting with the mouse), as is using mintty
on Windows with an ssh connection to a Linux machine. However, as
I wrote earlier, autocutsel has solved all (I think) of my
copy-and-paste problems on Linux. I run the following script
automatically at start-up.

#!/bin/sh
# See https://mutelight.org/subtleties-of-the-x-clipboard
autocutsel -fork
autocutsel -selection PRIMARY -fork

HTH,
Gary

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20240127054055.GE26982%40phoenix.

No comments: