Rainbow Parentheses Improved


Ⅰ. 插件描述

shorter code, no level limit, smooth and fast, powerful configuration.

Ⅱ. 基本信息

创建日期:  2012-08-17
使用用户:  7
Github星:  7
插件作者:  luo chen

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/rainbow-parentheses-improved'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/rainbow-parentheses-improved'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/rainbow-parentheses-improved'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

More details in Github: http://github.com/luochen1990/rainbow

(这里有中文版: http://github.com/luochen1990/rainbow/blob/master/README_zh.md)

Any problem, create a new issue here: http://github.com/luochen1990/rainbow/issues


What is improved ?

  • smoother and faster. (linear time complexity)
  • the code is shorter and easier to be read now. (shorter than 100 lines)
  • no limit of parentheses levels.
  • separately edit guifgs and ctermfgs (the colors used to highlight)
  • now you can design your own parentheses  such as 'begin' and 'end' . (you can also design  what kinds of parentheses to use for different filetypes. )
  • you can also configure seprately for different type of files.
  • now you can even decide to let some operators (like + - * / , ==) hilighted with the parentheses together.
  • now json style configuration used, more understandable and more readable, easily for advanced configuration.
  • the last , but not the least , the chinese statement is added as you see.

scripts I referenced:

Rate this script if you like it, and i'll appreciate it and improve this plugin for you because of your support !  just choose Life Changing and click rate :)

添加新评论