Created
October 24, 2017 10:12
-
-
Save enricobacis/1388afcc3abe3e3d9fad556989d824de to your computer and use it in GitHub Desktop.
test_timers.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:val = 0 | |
function! MyHandler(timer) | |
let g:val += 1 | |
endfunction | |
let timer = timer_start(50, 'MyHandler', {'repeat': -1}) | |
sleep 10000m | |
call timer_stop(timer) | |
echo g:val |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment