Created
May 13, 2011 08:04
-
-
Save nornagon/970177 to your computer and use it in GitHub Desktop.
threads, python, 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
function! Thing() | |
py << EOF | |
import vim, thread, time | |
def go(): | |
time.sleep(2) | |
vim.current.buffer[0] = "foo" | |
thread.start_new_thread(go, ()) | |
EOF | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment