VIM zsh, bash and colors in command line on Ubuntu
- by Jacek Wysocki
I have problem with VIM command line when calling system commands.
e.g. !ls, all command output colors aren't parsed by VIM. My system is Ubuntu 12.04 LTS with VIM 7.3.429 from Ubuntu repositories.
Is there any workaround for this problem?
EDIT:
My vimrc file
:!echo $TERM in VIM returns : dumb
EDIT2:
I found a simple workaround but it's not perfect
if [ "$VIM" ] && [ "$TERM" = "dumb" ]
then
# For gvim's monochromatic :shell
PS1='\n\u@\h \w\n\$ '
unalias ls
unalias grep
fi
(It's working on bash)