sponsor Vim development Vim logo Vim Book Ad

python_check_syntax.vim : a script that check the syntax of a python file by pyflakes

 script karma  Rating 15/7, Downloaded by 1731  Comments, bugs, improvements  Vim wiki

created by
tocer deng
 
script type
ftplugin
 
description
You can check the syntax of a python file if you install pyflakes module in you system. It call pyflakes function to check the current python file and display error messages in quickfix window in vim. You can browse the error by usual quickfix command like 'cc' ,'cn' etc.

There are two global variant which you maybe want to define in your .vimrc

g:pcs_hotkey      # run the checker, the default is  <localleader>cs
g:pcs_check_when_saving   # when true, the checker automaticlly run while saving, the default is true

WARNING:

1. Vim compiled with +python
2. Must install pyflakes in your system. The note is that the old version(<=0.2.1) is too old to identify the new syntax of python2.5, 2.6, so svn version is recomend.
 
install details
copy the python_check_syntax.vim into ~/.vim/ftplugin
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
python_check_syntax.vim 0.6.4 2009-04-09 6.0 tocer deng bug fixed. Thanks for Marius Gedminas
python_check_syntax.vim 0.6 2008-12-15 6.0 tocer deng Initial upload
ip used for rating: 13.58.112.1

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github