You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,9 +125,21 @@ Note: Like the `g:easytags_always_enabled` option, if you change this option it
125
125
126
126
### The `g:easytags_updatetime_min` option
127
127
128
-
Vim has a setting which influences how often the plug-in is automatically executed. When this setting is too low, the plug-in can break. For this reason the plug-in compensates by keeping track of when it was last executed. You'll get one warning when the plug-in first notices the low value, after that it will shut up. The default value of this option is 4000 milliseconds (4 seconds).
128
+
Vim's ['updatetime'][updatetime] option controls how often the easytags plug-in is automatically executed. A lot of popular Vim plug-ins manipulate this option to control how often they are called. Unfortunately some of those plug-ins set ['updatetime'][updatetime] to a very low value (less than a second) and this can break the easytags plug-in.
129
129
130
-
If you really want the plug-in to be executed more than once every 4 seconds you can lower the minimum acceptable updatetime by setting this option (as the number of milliseconds) however note that subsecond granularity is not supported.
130
+
Because of this the easytags plug-in compensates by keeping track of when it was last executed. You'll get one warning when the plug-in first notices a very low value of ['updatetime'][updatetime], after that the plug-in will shut up (until you restart Vim) and simply compensate by not executing until its time has come. If you want to silence the warning message forever, see the `g:easytags_updatetime_warn` option.
131
+
132
+
The default value of Vim's ['updatetime][updatetime] option *and* the `g:easytags_updatetime_min` option is 4000 milliseconds (4 seconds).
133
+
134
+
If you know what you're doing and you really want the easytags plug-in to be executed more than once every 4 seconds you can lower the minimum acceptable updatetime by setting `g:easytags_updatetime_min` to the number of milliseconds (an integer).
135
+
136
+
Note that although `g:easytags_updatetime_min` counts in milliseconds, the easytags plug-in does not support subsecond granularity because it is limited by Vim's [localtime()][localtime] function which has one-second resolution.
137
+
138
+
### The `g:easytags_updatetime_warn` option
139
+
140
+
Since the easytags plug-in now compensates for low ['updatetime'][updatetime] values (see the `g:easytags_updatetime_min` option above) the warning message shown by the easytags plug-in has become kind of redundant (and probably annoying?). For now it can be completely disabled by setting `g:easytags_updatetime_warn` to 0 (false).
141
+
142
+
When the feature that compensates for low ['updatetime'][updatetime] values has proven to be a reliable workaround I will probably remove the warning message and the `g:easytags_updatetime_warn` option.
131
143
132
144
### The `g:easytags_auto_update` option
133
145
@@ -297,6 +309,7 @@ This software is licensed under the [MIT license](http://en.wikipedia.org/wiki/M
let updatetime_min =xolox#misc#option#get('easytags_updatetime_min', 4000)
54
54
if &updatetime < updatetime_min
55
55
ifs:last_automatic_run==0
56
-
" Warn once about the low &updatetime value.
57
-
callxolox#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)
callxolox#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)
59
+
endif
58
60
lets:last_automatic_run=localtime()
59
61
else
60
62
let next_scheduled_run =s:last_automatic_run+max([1, updatetime_min / 1000])
0 commit comments