5

Ansi escape code in VIM

view full story
linux-howto

http://unix.stackexchange.com – I have a log file with colored log entries, where colors are defined by ansi escape codes. When I display the file (using cat or more), terminal understands the ansi codes and logs are colorful. But I want the power of VIM to do some text manipulation on log entries and yet see them colorful. Is there any plugin that can parse ansi codes in vim and color the text? The only plugins I found were able to strip the ansi codes and show the plain text monochrome. (HowTos)