if version >= 700
" Save all files before running any quickfix command (grep, makeprg, etc.)
autocmd QuickFixCmdPre * wall
+" automatically close quickfix if it's the only window left
+autocmd WinEnter * if winnr('$') == 1 && &buftype == "quickfix" | quit | endif
endif
" Syntax highlighting
endif
+if has("python")
+python << END_OF_PYTHON
+import sys, os
+
+virtualenv_dir = os.environ.get('VIRTUAL_ENV')
+if virtualenv_dir:
+ sys.path.insert(0, virtualenv_dir)
+ activate_this = os.path.join(virtualenv_dir, 'bin', 'activate_this.py')
+ execfile(activate_this, dict(__file__=activate_this))
+END_OF_PYTHON
+endif
+
+
" ----------
" From http://slobin.pp.ru/vim/_vimrc.html