ConradIrwin / vim-bracketed-paste

Handles bracketed-paste-mode in vim (aka. automatic `:set paste`)
MIT License
483 stars 28 forks source link

drop check for terminals #12

Closed akkartik closed 9 years ago

akkartik commented 10 years ago

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.

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.)

dborowitz commented 9 years ago

+1 to dropping the check. My $TERM is st-256color, which is not in the list. I'm sure there are more supported terminals that are missing as well.

My personal opinion is if you are using a terminal that doesn't support bracketed paste, you shouldn't be using vim-bracketed-paste. Yes, this might break if you ship your vim configs between machines where a subset doesn't support bracketed paste, but that doesn't seem like the common case.