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>
This commit is contained in:
Cihangir Akturk 2017-11-18 22:18:45 +03:00
parent 10f6b62ab0
commit bdb83427f5

View File

@ -9,6 +9,11 @@
" 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:loaded_bracketed_paste")
finish
endif
let g:loaded_bracketed_paste = 1
let &t_ti .= "\<Esc>[?2004h" let &t_ti .= "\<Esc>[?2004h"
let &t_te .= "\<Esc>[?2004l" let &t_te .= "\<Esc>[?2004l"