Commits

Jean-Philippe Thierry committed c97d16f

Fix python filetype detection

Comments (0)

Files changed (2)

ftdetect/python.vim

-autocmd FileType python set omnifunc=pythoncomplete#Complete
-au! BufNewFile,BufRead *.py compiler pylint
-au! BufNewFile,BufRead test_*.py compiler nose
 set statusline+=%{SyntasticStatuslineFlag()}
 set statusline+=%*
 
+autocmd FileType python set omnifunc=pythoncomplete#Complete
+au! BufNewFile,BufRead *.py compiler pylint
+au! BufNewFile,BufRead test_*.py compiler nose
 let python_highlight_all = 1
 let python_slow_sync = 1
 " Pylint is the default compiler for python files