Ⅰ. 插件描述
ansi escape sequences concealed, but highlighted as specified (conceal)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'powerman/vim-plugin-ansiesc'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'powerman/vim-plugin-ansiesc'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'powerman/vim-plugin-ansiesc'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/powerman/vim-plugin-ansiesc
Ⅳ. 文档说明
# Improved AnsiEsc.vim
Files with ANSI escape sequences look good when dumped onto a terminal
that accepts them, but have been a distracting clutter when edited via
- The AnsiEsc.vim file, when sourced, will conceal Ansi escape
- but will cause subsequent text to be colored as the escape
sequence specifies.
This is a Vim script №302: AnsiEsc.vim
updated to latest author's version
with several fixes/improvements.
Download .zip/.vmb from http://www.vim.org/scripts/script.php?script_id=4979
Changes
- updated to latest author's version: 13i (Apr 02, 2015)
- add support for simple ANSI sequences like "bold" (without defining color)
- add support for 16-color 'light' escape sequences (by Andy Berdan, merged from https://github.com/berdandy/AnsiEsc.vim)
- disable
\swpand\rwpmaps ifg:no_plugin_mapsorg:no_cecutil_mapsexists - disable DrChip/AnsiEsc menu if
g:no_drchip_menuorg:no_ansiesc_menuexists - add support for simple ANSI sequences like disable bold/italic/etc.
- minor fixes