Saturday, March 11, 2023

Re: Can I copy/yank into and out of vim?

On Sun, Mar 05, 2023 at 08:58:59AM +0100, Tony Mechelynck wrote:
> On Sat, Mar 4, 2023 at 4:24 AM Angel M Alganza <ama@ugr.es> wrote:
> >
> > On 2023-03-04 03:48, Tony Mechelynck wrote:
> >
> > > The reason for this dfference in behaviour is that xterm doesn't use
> > > the X11 clipboard (register + in Vim) but only the X11 selection
> > > (register * in Vim). In almost every other GUI, including gvim, you
> > > can use Edit→Cut, Edit→Copy and Edit→Paste to pass text from one
> > > program to another via the clipboard, but in xterm you need to have
> > > some text selected (and, in Vim, written to "*) then the middle mouse
> > > button pastes into xterm; conversely, IIUC anything selected in xterm
> > > will appear in Vim's * register and can be pasted with "*p or with
> > > <MiddleMouse>.

To add confusion:

The Fish shell accepts Ctrl-V as a paste command, as well as Shift-Ins
from the keyboard.

This works in Xterm and urxvt.

In plain Xterm with the sh shell, only Shift-Ins works as paste.

While testing and writing this down I found out that there are a lot of
differences that seem to be dependent on de combination of your terminal
multiplexer, your shell, and Vim. Finding the proper combinations,
the output of `:registers` might be helpful to compare.

//meine

--
--
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/ZAxCyuffZE0mUhwU%40trackstand.

No comments: