Skip to content

Instantly share code, notes, and snippets.

@blindFS
Created August 16, 2014 03:35
Show Gist options
  • Save blindFS/de48a380c5f4016d01fb to your computer and use it in GitHub Desktop.
Save blindFS/de48a380c5f4016d01fb to your computer and use it in GitHub Desktop.
function! s:async_test()
python << EOF
import vim
import time
import threading
def viminter():
time.sleep(3)
vim.command('echo 3')
t = threading.Thread(target=viminter)
t.start()
EOF
endfunction
call s:async_test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment