1.pyflakes語法檢查器安裝(Linux下)php
下載並解壓pyflakes,下載地址:http://www.vim.org/script.php?script_id=2441;python
個人程序解壓路勁是:/home/username/下載/pyflakes-vim/ftplugin/python;vim
將python文件夾裏面的全部文件拷貝到 /usr/share/vim/vimcurrent/ftplugin/python裏面,若是沒有這個路勁就新建文件夾;spa
最後,執行sudo gedit /etc/vim/vimrc,在裏面添加下面的代碼:code
filetype plugin indent on
autocmd fileType python setlocal et sta sw=4 sts=4
用vim打開一個.py文件後,執行:cc便可進行語法檢查。blog