Permalink
Browse files

make python part on vimrc optional

  • Loading branch information...
1 parent 5dae80f commit a4bb36893ef3ba8202fa35ba44e570c254a010a2 @jaybperry jaybperry committed May 10, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 vimrc
View
@@ -404,12 +404,13 @@ cmap w!! w !sudo tee % > /dev/null
set path=$PWD/**
"command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis
-
-python << EOF
+if has('python')
+ 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
+endif

0 comments on commit a4bb368

Please sign in to comment.