On Mon, 21 Oct 2024 14:23:47 -0400
Ven Tadipatri <vtadipatri@gmail.com> wrote:
> [...]
> Now, there is some fine print that I should let people know. Your vim
> compiler needs to be built with a "+clipboard" option.
This is the sore point. For people who use Vim over ssh, this is not an
option (ssh -X is crappy at least in my experience). OSC52 is a godsend
for this, but it only works for copying not pasting (for security
reasons). I've been dealing with it with ':set paste!' & <C-S-v>, but
as you said, for large text that's problematic.
So what I tend to do is: I send the clipboard content to a temp file
over ssh and then use remote Vim's local register to copy from that temp
file. It's a rare enough case that this doesn't bother me anymore (*he
says through gritted teeth*).
xclip -o | ssh enan@remote.org 'cat > tmp.txt' # from local shell
# then copy content from tmp.txt to real-file.txt with Vim
--
Enan
--
--
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 visit https://groups.google.com/d/msgid/vim_use/20241226083904.000038bb%40gmail.com.
Thursday, December 26, 2024
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment