Vim on the clock, but the party don’t stop
TikTok provides a simple asynchronous timer object for VimL.
-
tiktok#timer() returns a timer object with methods:
-
register — adds FUNCTION to list of responders to tick callback
-
enable — enables FUNCTION again if it was disabled
-
disable — disables FUNCTION from responding to tick callback
-
start — enables timer to respond to tick callbacks
-
stop — disables timer
-
toggle — switch an enabled timer to disabled and vice versa
-
tick — callback from tickler. Runs all enabled registered functions.
-