LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   To see special coloring characters rendered in vi (https://www.linuxquestions.org/questions/linux-newbie-8/to-see-special-coloring-characters-rendered-in-vi-683101/)

dale_chip 11-13-2008 05:18 AM

To see special coloring characters rendered in vi
 
I have a file which when i cat gives output like this :
Apple
Balloon
Cat

but when i open it in vi it opens as :
Apple
^[[0m^[[91mBalloon
^[[0mCat

Now obviously these are control characters for coloring.
Is there some way i can suppress them in vi , so that the file is easier to edit, while retaining the colors.

bigrigdriver 11-13-2008 02:05 PM

It would help to know more about the file in question. What kind of file is it? Is it short enough to present it here, or show a part of it here?


All times are GMT -5. The time now is 07:01 PM.