Thursday, August 12, 2021

Re: vim terminal bracketed-paste from register ?

Hi,

ok, thanks Bram.
I was thinking perhaps something like -

let @b="\<Esc>[?2004h"
let @p="\<Esc>[?2004l"
<C-w>"b<C-w>"*<C-w>"p

might do it.  But no matter, I can make sure my 'outer' terminal pastes w/BP instead of sending S-Insert ...

take care,
-m

On Thursday, August 12, 2021 at 9:12:17 AM UTC-4 Bram Moolenaar wrote:

> Thank you all always for awesome vim.
> If I have a mapping -
>
> tnoremap <S-Insert> <C-w>"*
>
> It does not seem to use bracketed-paste ?
> A 'p' in normal mode vim does use bracketed-paste.
> And a <C-r>* in insert mode vim does use bracketed-paste.
> Its just the same buffer but pasted in the terminal.
> Is bracketed-paste possible with a "* in a vim terminal ?
> My TERM inside the vim terminal is set to xterm-256color.
> vim termcap shows:
> t_BE=^[[?2004h
> t_BD=^[[?2004l
> t_PS <PasteStart> ^[[200~
> t_PE <PasteEnd> ^[[201~

Not sure what exactly you are doing, but I would think that in a
terminal window bracketed paste is controlled by the program running in
the terminal. E.g. if you run Vim in a terminal window it should work.

--
Q: What's orange and sounds like a parrot?
A: A carrot

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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/d684944a-46f7-43c2-824c-221e6bd6e219n%40googlegroups.com.

No comments:

Post a Comment