vim-niji


Ⅰ. 插件描述

Yet another rainbow parentheses plugin.

Ⅱ. 基本信息

创建日期:  2013-05-03
使用用户:  28
Github星:  6
插件作者:  Josh Hoff

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'losingkeys/vim-niji-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'losingkeys/vim-niji-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'losingkeys/vim-niji-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Version: 1.0.1
Last Change: 2013 May 8

虹
=

Niji (Rainbow) is yet another rainbow parentheses plugin for Vim. It’s
good for Common Lisp, Scheme and Clojure — with two colour schemes —
out-of-the-box. Just install, and you’re good to go. The filetypes, matching
characters and colours Niji uses are completely configurable.

Screenshot

vim-niji highlighting some Clojure.

Niji highliting some Clojure code from the Leiningen project.

Credit Where It’s Due

Whilst not a fork, Niji builds upon the work of various rainbow parantheses
plugins, starting with RainbowParenthsis.vim by John Gilmore,
rainbow_parenthsis.vim by Martin Krischik and Luc Hermitte, and
rainbow_parentheses.vim by ‘kien’. The figure below shows the rough history
and project pages for these plugins.

Niji also takes its default colour scheme from the Lisp syntax file provided
in distributions of Vim and written by Dr. Charles E. Campbell, Jr.

     ‘Niji’ by Alastair Touw
o    May 6, 2013.
|    (http://github.com/amdt/vim-niji)
|\
| |  ‘rainbow_parentheses.vim’ by ‘kien’
o |  October 12, 2011.
| |  (https://github.com/kien/rainbow_parentheses.vim)
| |
| o  ‘Lisp.vim’ by Dr. Charles E. Campbell, Jr.
|    November 16, 2010.
|
|    ‘rainbow_parenthsis.vim’ by Martin Krischik & Luc Hermitte
o    May 25, 2006.
|    (http://www.vim.org/scripts/script.php?script_id=1561)
|
|    ‘RainbowParenthsis.vim’ by John Gilmore
o    March 5, 2005.
     (http://www.vim.org/scripts/script.php?script_id=1230)

Installation

Vundle

If you don’t already have a preferred manager, I recommend installing
Vundle. Once done, add the declaration for
Niji to your .vimrc:

Bundle 'amdt/vim-niji'

And install:

:BundleInstall

Pathogen

If you’re using Tim Pope’s wonderful
Pathogen, simply extract the archive
to $HOME/.vim/bundle or better yet, clone the Git repository. In a UNIX
shell, for example:

cd ~/.vim/bundle
git clone git://github.com/amdt/vim-niji.git

Other

Vimball and manual installation methods are described in doc/niji.txt.

License

Niji is released under the same terms as Vim itself. See :help license if
you have Vim installed, or online at Vim's Sourceforge project page.

添加新评论