drop check for terminals

From the original author:

  "Note that this only enables bracketed paste mode when the $TERM value
  starts with "xterm".. you could omit the test altogether, since it
  isn’t strictly necessary—it’s just trying to be careful not to do
  something that might be incompatible with some other terminal type."
  (http://stackoverflow.com/questions/5585129/pasting-code-into-terminal-window-into-vim-on-mac-os-x/7053522#7053522)

Since we don't understand yet if this is a problem, I recommend dropping
the check and seeing if it comes back to bite us. Should be safe since
vim has undo.

(My machine has term set to 'linux', and I'm reluctant to keep adding
clauses to that check.)
This commit is contained in:
Kartik K. Agaram 2014-09-24 11:22:50 -07:00
parent 4be92ef5e0
commit baa5669ff6

View File

@ -8,7 +8,6 @@
" 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 &term =~ "xterm.*" || &term =~ "screen*" || &term =~ "rxvt*"
function! WrapForTmux(s)
if !exists('$TMUX')
return a:s
@ -36,4 +35,3 @@ if &term =~ "xterm.*" || &term =~ "screen*" || &term =~ "rxvt*"
vmap <expr> <f28> XTermPasteBegin("c")
cmap <f28> <nop>
cmap <f29> <nop>
endif