VIM zsh, bash and colors in command line on Ubuntu
Posted
by
Jacek Wysocki
on Super User
See other posts from Super User
or by Jacek Wysocki
Published on 2012-06-12T14:07:53Z
Indexed on
2012/06/22
3:19 UTC
Read the original article
Hit count: 416
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:
:!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)
© Super User or respective owner