diff --git a/plugin/bracketed-paste.vim b/plugin/bracketed-paste.vim index 9606004..315a3cb 100644 --- a/plugin/bracketed-paste.vim +++ b/plugin/bracketed-paste.vim @@ -9,23 +9,8 @@ " Docs on mapping fast escape codes in vim " http://vim.wikia.com/wiki/Mapping_fast_keycodes_in_terminal_Vim -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') || system('tmux -V')[5] >= '2' - 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=