One of the reasons i prefer to run Vim from a terminal instead of running gVim is that the output of external gets cluttered up by escape sequences each time I execute commands like
grep that I have aliased to colorize the output in my
:!ls I get output that looks like this:
[0m[01;34mDesktop[0m [01;34mDocuments[0m [01;34mDownloads[0m [01;34mGit[0m [01;34mMail[0m [01;34mMusic[0m [01;34mPictures[0m [01;34mProgramming[0m [01;34mPublic[0m [01;34mSoftware[0m [01;34mTemplates[0m todo.txt [01;34mVideos0m
:!vi in gVim and your entire screen will explode.
Is there a solution to this problem? Is it possible to make gVim discard escape sequences when printing the output of an external command?