rainbow_parentheses.vim


Ⅰ. 插件描述

:rainbow: Simpler Rainbow Parentheses

Ⅱ. 基本信息

创建日期:  2011-10-12
使用用户:  405
Github星:  258
插件作者:  Junegunn Choi

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Better Much simpler Rainbow Parentheses

A heavily-rewritten fork of kien/rainbow_parentheses.vim.

  • Simpler commands and configuration
  • Automatic color extraction
  • Adjusts itself when color scheme is changed

Installation

Using vim-plug:

Plug 'junegunn/rainbow_parentheses.vim'

Commands

" Activate
:RainbowParentheses

" Deactivate
:RainbowParentheses!

" Toggle
:RainbowParentheses!!

" See the enabled colors
:RainbowParenthesesColors

" Activation based on file type
augroup rainbow_lisp
  autocmd!
  autocmd FileType lisp,clojure,scheme RainbowParentheses
augroup END

Customization

let g:rainbow#max_level = 16
let g:rainbow#pairs = [['(', ')'], ['[', ']']]

" List of colors that you do not want. ANSI code or #RRGGBB
let g:rainbow#blacklist = [233, 234]

添加新评论