Get rid of tmux code [Fixes #32]
This commit is contained in:
parent
535c3c1aae
commit
363f9b62d3
@ -13,19 +13,8 @@ if !exists("g:bracketed_paste_tmux_wrap")
|
|||||||
let g:bracketed_paste_tmux_wrap = 1
|
let g:bracketed_paste_tmux_wrap = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! WrapForTmux(s)
|
let &t_ti .= "\<Esc>[?2004h"
|
||||||
if !g:bracketed_paste_tmux_wrap || !exists('$TMUX')
|
let &t_te .= "\<Esc>[?2004l"
|
||||||
return a:s
|
|
||||||
endif
|
|
||||||
|
|
||||||
let tmux_start = "\<Esc>Ptmux;"
|
|
||||||
let tmux_end = "\<Esc>\\"
|
|
||||||
|
|
||||||
return tmux_start . substitute(a:s, "\<Esc>", "\<Esc>\<Esc>", 'g') . tmux_end
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
let &t_ti .= WrapForTmux("\<Esc>[?2004h")
|
|
||||||
let &t_te .= WrapForTmux("\<Esc>[?2004l")
|
|
||||||
|
|
||||||
function! XTermPasteBegin(ret)
|
function! XTermPasteBegin(ret)
|
||||||
set pastetoggle=<f29>
|
set pastetoggle=<f29>
|
||||||
|
Loading…
Reference in New Issue
Block a user