Ⅰ. 插件描述
vim port of highlightparentheses.elⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'bounceme/poppy-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'bounceme/poppy-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'bounceme/poppy-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/bounceme/poppy.vim
Ⅳ. 文档说明
# poppy.vim
vim port of highlightparentheses.el which gives rainbow parens propagating from the cursor
Enabled with autocmds ( :h autocommand )
example:
au! cursormoved * call PoppyInit()
or:
au! cursormoved *.lisp call PoppyInit()
or even make a mapping:
augroup Poppy
au!
augroup END
nnoremap <silent> <leader>hp :call clearmatches() \| let g:poppy = -get(g:,'poppy',-1) \|
\ exe 'au! Poppy CursorMoved *' . (g:poppy > 0 ? ' call PoppyInit()' : '') <cr>modify coloring by changing g:poppyhigh, which is a list of highlight group names.
If you want only 1 paren level highlighted, let g:poppyhigh to a list with 1 group name.
If you want the highlighting to include matches which are under the cursor, like the matchparen plugin
included with vim, let g:poppy_point_enable = 1 .