Skip to content

Instantly share code, notes, and snippets.

@chrischambers
Created July 22, 2010 19:10
Show Gist options
  • Save chrischambers/486430 to your computer and use it in GitHub Desktop.
Save chrischambers/486430 to your computer and use it in GitHub Desktop.
python << EOF
import os
import sys
import vim
for p in sys.path:
if os.path.isdir(p):
vim.command(r"set path+=%s" % (p.replace(" ", r"\ ")))
EOF
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment