Wednesday, May 9, 2018

Re: Supporting xterm-bracketed-paste

On Mi, 09 Mai 2018, Matteo Landi wrote:

> Found the offending line in my .vimrc:
>
> inoremap <expr> <Esc> pumvisible() ? "\<C-e>" : "\<Esc>"
>
> Is this somehow breaking braketed paste? (i.e. swallowing the escape the
> terminal send at the beginning of a paste block)

Very likely. It also breaks the various terminal request strings that
Vim requests when starting up. You might want to check, if this mapping
works, if you only define it in a VimEnter autocommand.

Alternatively, I wouldn't recommend mapping ESC anyhow.

Best,
Christian
--
Läßt der Knecht die Arbeit liegen, kann er leicht 'n Arsch vollkriegen.

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment