"配置python解释器
autocmd BufRead *.py set makeprg=python\ -c\ \"import\ py_compile,sys;\ sys.stderr=sys.stdout;\ py_compile.compile(r'%')\"
autocmd BufRead *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m
autocmd BufRead *.py nmap :!python %
autocmd BufRead *.py nmap :make
autocmd BufRead *.py copen "如果是py文件,则同时打开编译信息窗口
将上面拷贝到 C:\Program Files (x86)\Vim\_vimrc 的最后一行