Skip to content

Instantly share code, notes, and snippets.

@willb
Created April 5, 2010 15:13
Show Gist options
  • Save willb/356446 to your computer and use it in GitHub Desktop.
Save willb/356446 to your computer and use it in GitHub Desktop.
import os
childpid = os.fork()
if childpid == 0:
os.execl("/usr/bin/vim", "/usr/bin/vim")
else:
os.waitpid(childpid, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment