From 363f9b62d3aaa8f1cb6ba8abbeadecbef8d5cd42 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Fri, 1 Sep 2017 11:23:22 -0700 Subject: [PATCH] Get rid of tmux code [Fixes #32] --- plugin/bracketed-paste.vim | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/plugin/bracketed-paste.vim b/plugin/bracketed-paste.vim index 196ec9b..1d940e7 100644 --- a/plugin/bracketed-paste.vim +++ b/plugin/bracketed-paste.vim @@ -13,19 +13,8 @@ if !exists("g:bracketed_paste_tmux_wrap") let g:bracketed_paste_tmux_wrap = 1 endif -function! WrapForTmux(s) - if !g:bracketed_paste_tmux_wrap || !exists('$TMUX') - return a:s - endif - - let tmux_start = "\Ptmux;" - let tmux_end = "\\\" - - return tmux_start . substitute(a:s, "\", "\\", 'g') . tmux_end -endfunction - -let &t_ti .= WrapForTmux("\[?2004h") -let &t_te .= WrapForTmux("\[?2004l") +let &t_ti .= "\[?2004h" +let &t_te .= "\[?2004l" function! XTermPasteBegin(ret) set pastetoggle=