vim-plugin-ansiesc


Ⅰ. 插件描述

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

Ⅱ. 基本信息

创建日期:  2004-11-24
使用用户:  66
Github星:  97
插件作者:  Alex Efros

Ⅲ. 安装方法

使用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

  1. The AnsiEsc.vim file, when sourced, will conceal Ansi escape
  2. 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 \swp and \rwp maps if g:no_plugin_maps or g:no_cecutil_maps exists
  • disable DrChip/AnsiEsc menu if g:no_drchip_menu or g:no_ansiesc_menu exists
  • add support for simple ANSI sequences like disable bold/italic/etc.
  • minor fixes

添加新评论