MTDL9 / vim-log-highlighting

Syntax highlighting for generic log files in VIM
MIT License
229 stars 40 forks source link

Conceal terminal color escape codes #15

Open gosukiwi opened 2 years ago

gosukiwi commented 2 years ago

This adds

syntax match Normal '\[[0-9;]*m' conceal

To conceal all ANSI color code escape sequences, so they do not distract you from reading the logs.

It also sets conceallevel and concealcursor so color escape codes are completely hidden unless in VISUAL or INSERT mode (like Vim's help files).