python-syntax.vim


Ⅰ. 插件描述

Enhanced version of the python syntax highlighting script

Ⅱ. 基本信息

创建日期:  2003-10-13
使用用户:  6
Github星:  3
插件作者:  Olivier Verdier

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This is a mirror of http://www.vim.org/scripts/script.php?script_id=790

Enhanced version of the original (from vim6.1) python.vim for Python programming language.

The changes since the original python.vim are:

  • changed strings highlighting;
  • enhanced special symbols highlighting inside strings;
  • enhanced numbers highlighting;
  • added optional highlighting for %-formatting inside strings;
  • added highlighting for some error conditions (wrong symbols in source file,
    mixing spaces and tabs, wrong number values,

wrong %-formatting inside strings);

  • added highlighting for magic comments: source code encoding
    and #! (executable) strings;
  • added highlighting for new exceptions and builtins introduced in python 2.3, 2.4 and 2.5;
  • added highlighting for doctests;
  • added highlighting for new @decorator syntax introduced in Python 2.4a2;
  • added highlighting for trailing-space errors (triggered by new
    option: python_highlight_space_errors);
  • added highlighting for variable name errors;
  • added highlighting for hex number errors;

添加新评论