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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -