Permalink
Browse files

fixed error if vim was not compiled with python

some other tuning :)
  • Loading branch information...
1 parent 098d2bb commit 1e6935cc054e543b1fc51e422a842f30fcdd2def @czervenka committed Jan 11, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 .vimrc
View
8 .vimrc
@@ -9,6 +9,8 @@ let g:ropevim_guess_project=1
" solarized colorscheme
let g:solarized_contrast="low"
+" if vim was compiled with python allow some virtualenv enhancements
+if has('python')
py << EOF
import os.path
import sys
@@ -21,6 +23,7 @@ if 'VIRTUAL_ENV' in os.environ:
if os.path.exists(activate_this):
execfile(activate_this, dict(__file__=activate_this))
EOF
+endif
" pathogen autoload bundles
@@ -115,15 +118,16 @@ set completeopt=menu,preview
set wildchar=<Tab>
set wildmenu
"set wildmode=longest:list,full
-set wildmode=list,full
-set wildignore=*.pyc,*.pdf,*.jpg,*.gif
+set wildmode=longest,list,full
+set wildignore=*.pyc,*.pdf,*.jpg,*.gif,.git
" set statusline=%1*%n:%*\ %<%f\ %y%m%2*%r%*%=[%b,0x%B]\ \ %l/%L,%c%V\ \ %P
set statusline=%{fugitive#statusline()}%1*%n:%*\ %<%f\ %y%m%2*%r%*%=[%b,0x%B]\ \ %l/%L,%c%V\ \ %P
" %<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
set fileencoding=utf8
"set fileencodings=latin2,windows-1250,utf8
+set fileencodings=
set t_Co=256
set cuc

0 comments on commit 1e6935c

Please sign in to comment.