Files with ANSI escape sequences look good when dumped onto a terminal that accepts them, but have been a distracting clutter when edited via vim. The AnsiEsc.vim file, when sourced, will conceal Ansi escape sequences 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
- 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