Ⅰ. 插件描述
Bundle repository for vim AnsiEsc by Charles CampbellⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ponzellus/ansiesc'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ponzellus/ansiesc'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ponzellus/ansiesc'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ponzellus/ansiesc
Ⅳ. 文档说明
AnsiEsc
Bundle repository for vim AnsiEsc by Charles Campbell
For version see commit comment!
The versions are usually taken from Charles' vimpage, which are newer than the ones linked on the vim-scripts page
Description
(taken directly from Charles' vimpage)
This plugin follows Ansi-escape sequences to colorize subsequent text using vim's syntax highlighting engine.
The AnsiEsc plugin provides a single command: :AnsiEsc , which will toggle Ansi-escape sequence processing. When enabled, AnsiEsc will handle <esc>[FGm, <esc>[ATTR;FGm, and <esc>[FG;BGm sequences; subsequent text will then be colored appropriately.
With vim 7.2 and earlier, the escape sequence itself will take space but will be suppressed using "Ignore" highlighting. Vim 7.3 comes with Vince Negri's conceal/ownsyntax capabilities built-in. With it, Ansi-escape sequences will have their colorizing effects but will themselves be concealed (again, when AnsiEsc is enabled and one has used set conceallevel=[2 or 3]). Also available at vim.sf.net where you may rank it.