From f821200c04d6482f3ee9ccb0000e0ba646cedbbc Mon Sep 17 00:00:00 2001 From: Randy Stauner Date: Thu, 1 Jan 2015 20:37:00 -0700 Subject: [PATCH] Allow disabling tmux wrap with global var Make it configurable for cases where it isn't detectable. --- plugin/bracketed-paste.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/bracketed-paste.vim b/plugin/bracketed-paste.vim index bb4f0cd..a6dc946 100644 --- a/plugin/bracketed-paste.vim +++ b/plugin/bracketed-paste.vim @@ -8,8 +8,13 @@ " http://www.xfree86.org/current/ctlseqs.html " 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 !exists('$TMUX') + if !g:bracketed_paste_tmux_wrap || !exists('$TMUX') return a:s endif