AnsiEsc.vim : shows ansi escape-sequenced text in their associated colors
script karma |
Rating 16/6,
Downloaded by 268 |
created by |
Charles Campbell |
|
script type |
syntax |
|
description |
Files with ANSI escape sequences look good when dumped onto a window that
accepts them, but are distracting when edited via vim. Using this syntax file
the sequences will cause subsequent text to be colored correctly. The sequences
themselves would ideally be "folded" away, but folding is line-based, not
match based. Hence the next best solution: they are highlighted with
"Ignore" highlighting.
VIM Developer's Corner:
Vince Negri's "conceal" patch to vim6.1 allows one to suppress strings
within a line -- ideal for Ansi escape sequences. Version 3 uses that new
facility to display Ansi-sequence containing files. However, you do have
to have a patched vim6.1 for the new <AnsiEsc.vim> to work; hopefully vim
6.2 will come with the new facility. May I suggest you try :set conc=2
with this script.
|
|
install details |
Just source the file in whenever you wish to observe an approximation of
what the ansi-escape sequenced file will look like. |
|
script versions (upload new version)
Click on the package to download.
AnsiEsc.vim |
3 |
23-Oct-2002 |
6.0 |
Charles Campbell |
Uses Vince Negri's "conceal" patch to show Ansi-sequence
escaped text while hiding the sequences themselves. This
version will _not_ work properly without that patch to v6.1
-- this upload is currently just for Vim developers--
|
AnsiEsc.vim |
2 |
23-May-2002 |
6.0 |
Charles Campbell |
Initial upload |
|