powerman/vim-plugin-AnsiEsc

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

Vim Script

215

33 commits

updated Feb 4, 2023

See the code

README

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

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

Contributors

powerman

24 commits

rkitover

5 commits

guiniol

1 commits

jamessan

1 commits

powerman/vim-plugin-AnsiEsc

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

Vim Script

215

33 commits

updated Feb 4, 2023

See the code

README

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

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

Contributors

powerman

24 commits

rkitover

5 commits

guiniol

1 commits

jamessan

1 commits

Languages

Vim Script

81.2%

Perl

18.7%