Skip to content

Instantly share code, notes, and snippets.

@nornagon
Created May 13, 2011 08:04
Show Gist options
  • Save nornagon/970177 to your computer and use it in GitHub Desktop.
Save nornagon/970177 to your computer and use it in GitHub Desktop.
threads, python, vim
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