Mercurial > vim-gutentags
diff plugin/gutentags.vim @ 149:f915393ff68d
Add `g:gutentags_dont_load` setting.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 07 Dec 2016 21:46:02 -0800 |
parents | d566ec6cd2f7 |
children | 41fa23706d9c |
line wrap: on
line diff
--- a/plugin/gutentags.vim Wed Dec 07 21:20:50 2016 -0800 +++ b/plugin/gutentags.vim Wed Dec 07 21:46:02 2016 -0800 @@ -4,6 +4,10 @@ " Globals {{{ +if (&cp || get(g:, 'gutentags_dont_load', 0)) + finish +endif + if v:version < 704 echoerr "gutentags: this plugin requires vim >= 7.4." finish @@ -11,7 +15,7 @@ let g:gutentags_debug = get(g:, 'gutentags_debug', 0) -if (exists('g:loaded_gutentags') || &cp) && !g:gutentags_debug +if (exists('g:loaded_gutentags') && !g:gutentags_debug) finish endif if (exists('g:loaded_gutentags') && g:gutentags_debug)