2011-08-29 07:45:42 +00:00

28 lines
787 B
VimL

" Vim compiler file
" Compiler: python
" Maintainer: Stefan Liebl
" Last Change: 13.06.2002
if exists("current_compiler")
finish
endif
let current_compiler = "python"
"let &makeprg = g:python . ' -c "import py_compile,sys; sys.stderr=sys.stdout; py_compile.compile(%:p)\"'
"let &makeprg = g:python . ' -c "import py_compile; py_compile.compile(r\'%\')"'
set makeprg=python\ -c\ \"import\ py_compile;\ py_compile.compile('%')\"
"let &makeprg = g:python . ' -c "print \"hallo welt\"; print \"ende\""'
set shellpipe=2>
set errorformat+=%E%\\s%#File\ \"%f\"\\,\ line\ %l\\,\ %m
set errorformat+=%C%m
set errorformat+=%Z%.%#Error:\ %m
set errorformat+=%E%\\s%#File\ \"<string>\"\\,\ line\ %l
set errorformat+=%C%m
set errorformat+=%-C\ %p^
set errorformat+=%Z%.%#Error:\ %m