ANSI Color Codes in VIM

前端 未结 4 1238
小蘑菇
小蘑菇 2020-12-23 16:38

I have a script that generates a log file with ANSI color codes in them like so:

[2012-05-14 18:00:02] ^[[0mINF: -- Starting update script --^[[0m
[2012-05-1         


        
4条回答
  •  失恋的感觉
    2020-12-23 17:23

    Use Charles Campbell's (Dr Chip) AnsiEsc plugin:

    http://www.vim.org/scripts/script.php?script_id=302

    Before:

    before

    :AnsiEsc

    after

提交回复
热议问题