echo - Vim text coloring -
i use echo -e
color scripts output, works fine when using standard output.
but when redirect output file, vim doesn't show colors, instead of shows signs ^[[
example:
echo -e "\e[32m green message\e[0m"; echo -e "\e[31m red message\e[0m";
with vim :
^[[32m green message^[[0m ^[[31m red message^[[0m
how fix this.
nb: cat shows colors too!!
use either ansiesc plugin dr. chip or colorizer plugin. both should able color terminal escape sequences.
Comments
Post a Comment