diff options
author | Peter Odding <peter@peterodding.com> | 2013-05-19 13:51:34 +0200 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2013-05-19 13:51:34 +0200 |
commit | 384ebf413dac9739d15857bf5a51c05e9c91d514 (patch) | |
tree | 5fac33509ca105bcd760126d59c0521af45d0b7e /autoload | |
parent | bff179d22258e8f64139bd494a6a2f73f98d655b (diff) | |
download | vim-easytags-384ebf413dac9739d15857bf5a51c05e9c91d514.tar.gz |
Add g:easytags_updatetime_warn option, improve documentation (issue #47)
Issue #47 on GitHub:
https://github.com/xolox/vim-easytags/issues/47
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/xolox/easytags.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim index 034cdca..192f7c0 100644 --- a/autoload/xolox/easytags.vim +++ b/autoload/xolox/easytags.vim @@ -3,7 +3,7 @@ " Last Change: May 19, 2013 " URL: http://peterodding.com/code/vim/easytags/ -let g:xolox#easytags#version = '3.3.1' +let g:xolox#easytags#version = '3.3.2' call xolox#misc#compat#check('easytags', 3) @@ -53,8 +53,10 @@ function! xolox#easytags#autoload(event) " {{{2 let updatetime_min = xolox#misc#option#get('easytags_updatetime_min', 4000) if &updatetime < updatetime_min if s:last_automatic_run == 0 - " Warn once about the low &updatetime value. - call xolox#misc#msg#warn("easytags.vim %s: The 'updatetime' option has an unreasonably low value, so I'll start compensating (see the easytags_updatetime_min option).", g:xolox#easytags#version) + " Warn once about the low &updatetime value? + if xolox#misc#option#get('easytags_updatetime_warn', 1) + call xolox#misc#msg#warn("easytags.vim %s: The 'updatetime' option has an unreasonably low value, so I'll start compensating (see the easytags_updatetime_min option).", g:xolox#easytags#version) + endif let s:last_automatic_run = localtime() else let next_scheduled_run = s:last_automatic_run + max([1, updatetime_min / 1000]) |