Allow disabling tmux wrap with global var

Make it configurable for cases where it isn't detectable.
This commit is contained in:
Randy Stauner 2015-01-01 20:37:00 -07:00
parent dda9344173
commit f821200c04

View File

@ -8,8 +8,13 @@
" http://www.xfree86.org/current/ctlseqs.html " http://www.xfree86.org/current/ctlseqs.html
" Docs on mapping fast escape codes in vim " Docs on mapping fast escape codes in vim
" http://vim.wikia.com/wiki/Mapping_fast_keycodes_in_terminal_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) function! WrapForTmux(s)
if !exists('$TMUX') if !g:bracketed_paste_tmux_wrap || !exists('$TMUX')
return a:s return a:s
endif endif