python_check_syntax.vim


Ⅰ. 插件描述

a script that check the syntax of a python file by pyflakes

Ⅱ. 基本信息

创建日期:  2008-12-15
使用用户:  1
Github星:  3
插件作者:  tocer deng

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/python-check-syntax-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/python-check-syntax-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/python-check-syntax-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/python_check_syntax.vim

Ⅳ. 文档说明

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.

添加新评论