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=