Merge pull request #16 from rwstauner/disable-tmux-wrap

Allow disabling tmux wrap with global var
This commit is contained in:
Conrad Irwin 2015-01-02 10:31:35 -08:00
commit 36779ba3b1

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