From fd01b5d333b9aa190af4ea718280c54bcbb71070 Mon Sep 17 00:00:00 2001 From: Stefan Siegel Date: Tue, 9 Feb 2016 00:33:02 +0100 Subject: [PATCH] Keep bracketed paste enabled in normal and visual mode The mappings are already in place, but are unused without this change. In command line mode the escape sequences are mapped to , so they will be ignored and keeping bracketed paste enabled all the time should cause no trouble. --- plugin/bracketed-paste.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/bracketed-paste.vim b/plugin/bracketed-paste.vim index a6dc946..196ec9b 100644 --- a/plugin/bracketed-paste.vim +++ b/plugin/bracketed-paste.vim @@ -24,8 +24,8 @@ function! WrapForTmux(s) return tmux_start . substitute(a:s, "\", "\\", 'g') . tmux_end endfunction -let &t_SI .= WrapForTmux("\[?2004h") -let &t_EI .= WrapForTmux("\[?2004l") +let &t_ti .= WrapForTmux("\[?2004h") +let &t_te .= WrapForTmux("\[?2004l") function! XTermPasteBegin(ret) set pastetoggle=