Commit Graph

17 Commits

Author SHA1 Message Date
Cihangir Akturk
bdb83427f5 Add include guard at the beginning of script
No need to re-load the plugin if it has already been loaded. If you have
a specific reason to do so, just do

  ':unlet g:loaded_bracketed_paste'

and then try to reload it.

Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
2017-11-18 23:09:56 +03:00
Cihangir Akturk
10f6b62ab0 Get rid of unused variable 'g:bracketed_paste_tmux_wrap'
Remove unused variable 'g:bracketed_paste_tmux_wrap', and
the test for its existence.

Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
2017-11-18 22:13:44 +03:00
Conrad Irwin
363f9b62d3 Get rid of tmux code [Fixes #32] 2017-09-01 11:23:22 -07:00
nkcfan
ab571a1863 Revert "Merge pull request #21 from Ekleog/master"
This reverts commit 765e757dbc, reversing
changes made to 148df8cb26.
2017-02-22 06:37:47 +00:00
Léo Gaspard
475f337b5f
Support newer tmux versions
First, it should not break anything: according to tmux's ChangeLog, then tmux
support for bracketed-paste mode dates back to 1.7.

Then, on my (tmux 2.1) system, WrapForTmux actually makes the char codes be
ignored, and a tmux error file is written. I couldn't find a trace in tmux's
ChangeLog as to when this occured, and so went with switching on the major tmux
version.
2016-02-17 03:11:49 +01:00
Stefan Siegel
fd01b5d333 Keep bracketed paste enabled in normal and visual mode
The mappings are already in place, but are unused without this change.
In command line mode the escape sequences are mapped to <nop>, so they
will be ignored and keeping bracketed paste enabled all the time should
cause no trouble.
2016-02-09 00:48:06 +01:00
Randy Stauner
f821200c04 Allow disabling tmux wrap with global var
Make it configurable for cases where it isn't detectable.
2015-01-01 20:37:00 -07:00
Conrad Irwin
108f37fc0c Revert "Check for empty $TMUX variable" 2014-12-06 20:58:56 -08:00
Markus Koller
1c08bafec6 Check for empty $TMUX variable
In some situations, like when running vim with sudo, $TMUX exists() for some reason but is empty.
2014-12-04 21:59:11 +01:00
Kartik K. Agaram
baa5669ff6 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.)
2014-09-24 11:22:50 -07:00
Valérian Galliat
7e1aa9ff2a Support rxvt* 2014-08-30 13:43:00 +02:00
Conrad Irwin
7b88e4565e Use <f29> consistently 2014-04-26 14:08:24 -05:00
Vaarnan Drolia
3cca2bdb64 Remove the escape delay when trying to exit insert mode using the escape key 2014-04-25 01:15:58 +08:00
Renault John Lecoultre
2523defcb6 Added support for tmux 2014-01-29 09:16:46 +01:00
Stephen
f1ed7e4d0e allow this inside screen as well 2014-01-14 14:38:42 +00:00
Conrad Irwin
895b79ae0f function! so you can reload the file multiple times. 2013-07-20 17:27:17 -07:00
Conrad Irwin
46bb985dc7 vim-bracketed-paste! 2013-04-07 16:57:25 -07:00