Mercurial > vim-gutentags
comparison 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 |
comparison
equal
deleted
inserted
replaced
148:b178f2251982 | 149:f915393ff68d |
---|---|
1 " gutentags.vim - Automatic ctags management for Vim | 1 " gutentags.vim - Automatic ctags management for Vim |
2 " Maintainer: Ludovic Chabant <http://ludovic.chabant.com> | 2 " Maintainer: Ludovic Chabant <http://ludovic.chabant.com> |
3 " Version: 0.0.1 | 3 " Version: 0.0.1 |
4 | 4 |
5 " Globals {{{ | 5 " Globals {{{ |
6 | |
7 if (&cp || get(g:, 'gutentags_dont_load', 0)) | |
8 finish | |
9 endif | |
6 | 10 |
7 if v:version < 704 | 11 if v:version < 704 |
8 echoerr "gutentags: this plugin requires vim >= 7.4." | 12 echoerr "gutentags: this plugin requires vim >= 7.4." |
9 finish | 13 finish |
10 endif | 14 endif |
11 | 15 |
12 let g:gutentags_debug = get(g:, 'gutentags_debug', 0) | 16 let g:gutentags_debug = get(g:, 'gutentags_debug', 0) |
13 | 17 |
14 if (exists('g:loaded_gutentags') || &cp) && !g:gutentags_debug | 18 if (exists('g:loaded_gutentags') && !g:gutentags_debug) |
15 finish | 19 finish |
16 endif | 20 endif |
17 if (exists('g:loaded_gutentags') && g:gutentags_debug) | 21 if (exists('g:loaded_gutentags') && g:gutentags_debug) |
18 echom "Reloaded gutentags." | 22 echom "Reloaded gutentags." |
19 endif | 23 endif |