Skip to content

Instantly share code, notes, and snippets.

@enricobacis
Created October 24, 2017 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enricobacis/1388afcc3abe3e3d9fad556989d824de to your computer and use it in GitHub Desktop.
Save enricobacis/1388afcc3abe3e3d9fad556989d824de to your computer and use it in GitHub Desktop.
test_timers.vim
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