AnsiEsc.vim


Ⅰ. 插件描述

ansi escape sequences concealed, but highlighted as specified (conceal)

Ⅱ. 基本信息

创建日期:  2004-11-24
使用用户:  423
Github星:  55
插件作者:  Charles Campbell

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/ansiesc-vim-would-can-one'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/ansiesc-vim-would-can-one'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/ansiesc-vim-would-can-one'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Files with ANSI escape sequences look good when dumped onto a terminal that accepts them, but heretofore have been a distracting clutter when edited via vim.  The AnsiEsc.vim file, when sourced with vim 7.3 or later, will conceal Ansi escape sequences but will cause subsequent text to be colored as the escape sequence specifies.

You need to have a vim with conceal mode enabled; use has("conceal") to find out if the vim you're using has that feature.

Without that conceal feature or with vim versions earlier than 7.3, the best that can be done is to suppress Ansi escape sequences with "Ignore" highlighting.  AnsiEsc.vim v2 does that.

Cutting edge versions are available at http://www.drchip.org/astronaut/vim/index.html#ANSIESC .

Usage:  edit a file containing escape sequences, then type :AnsiEsc

添加新评论