diff options
author | E.J. Sexton <ejsexton82@gmail.com> | 2017-12-03 16:15:28 +0100 |
---|---|---|
committer | BlackEagle <ike.devolder@gmail.com> | 2018-02-10 18:31:55 +0100 |
commit | e339ac0a2d3f7858a0fbe31018d98fe1553da815 (patch) | |
tree | 3fc207db2efd53f5549dbbdf177632fd98412937 /plugin/vdebug.vim | |
parent | 5023a135af9a07fb48e1d1be7dcd9c6472e5bfb8 (diff) | |
download | vdebug-e339ac0a2d3f7858a0fbe31018d98fe1553da815.zip |
Added check to prevent loading plugin twice
Diffstat (limited to 'plugin/vdebug.vim')
-rw-r--r-- | plugin/vdebug.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin/vdebug.vim b/plugin/vdebug.vim index ad121f1..6e70015 100644 --- a/plugin/vdebug.vim +++ b/plugin/vdebug.vim @@ -18,6 +18,15 @@ "============================================================================= " }}} +" avoid double loading of vdebug +if exists('g:is_vdebug_loaded') + finish +endif + +" Set a special flag used only by this plugin for preventing doubly +" loading the script. +let g:is_vdebug_loaded = 1 + " Do not source this script when python is not compiled in. if !has("python3") echomsg ":python3 is not available, vdebug will not be loaded." |