Friday, June 15, 2018

Re: terminal mode bracketed paste ?

On Thu, 14 Jun 2018 19:46:45 -0700 (PDT)
M Kelly <mckelly2833@gmail.com> wrote:

> It seems for me bracketed paste is not enabled in terminal mode.
> If I copy a few lines then paste into my zsh outside of vim (in tmux) then bracketed paste is enabled and the lines are not executed until I hit enter.
> But if in terminal mode I paste then each line is executed.

Vim does not enables bracketed paste mode if TERM=screen.
To enable bracketed paste mode when vim runs in tmux, you may add following
setting into .vimrc.

if &term =~ "screen"
let &t_BE = "\e[?2004h"
let &t_BD = "\e[?2004l"
exec "set t_PS=\e[200~"
exec "set t_PE=\e[201~"
endif

--
IWAMOTO Kouichi (sue@iwmt.org/sue@postfix.jp/sue@TeraTerm.Net)

--
--
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