Skip to content

Commit 363f9b6

Browse files
committed
Get rid of tmux code [Fixes #32]
1 parent 535c3c1 commit 363f9b6

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

plugin/bracketed-paste.vim

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,8 @@ if !exists("g:bracketed_paste_tmux_wrap")
1313
let g:bracketed_paste_tmux_wrap = 1
1414
endif
1515

16-
function! WrapForTmux(s)
17-
if !g:bracketed_paste_tmux_wrap || !exists('$TMUX')
18-
return a:s
19-
endif
20-
21-
let tmux_start = "\<Esc>Ptmux;"
22-
let tmux_end = "\<Esc>\\"
23-
24-
return tmux_start . substitute(a:s, "\<Esc>", "\<Esc>\<Esc>", 'g') . tmux_end
25-
endfunction
26-
27-
let &t_ti .= WrapForTmux("\<Esc>[?2004h")
28-
let &t_te .= WrapForTmux("\<Esc>[?2004l")
16+
let &t_ti .= "\<Esc>[?2004h"
17+
let &t_te .= "\<Esc>[?2004l"
2918

3019
function! XTermPasteBegin(ret)
3120
set pastetoggle=<f29>

0 commit comments

Comments
 (0)