[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vim syntax highlighting does not work in screen

From: aladdin
Subject: Re: vim syntax highlighting does not work in screen
Date: Wed, 16 Aug 2006 15:54:15 +0800
User-agent: Thunderbird (Windows/20060719)

Michael Parson wrote:

What is your TERM env set to?

I tend to have mine set to either xterm or vt220, which lets the syntax
highlighting and coloring come through.  Does color-ls colorizes your ls

If vim doesn't fire up in colorized mode, I'll usually exit and try it
with (under bash):

$ TERM=xterm vim

That will set the term type to xterm for just that one command.

But my 'screen' command is aliased to start with vt220 as the default
term type:

alias screen='screen -T vt220'

which works fine for everything except when I try to run vim under sudo,
the highlighting works, but colors don't, so I do the TERM=xterm trick
above, which makes the colors show up again.

Thanks for your suggestion. I checked the $TERM env and it was set to xterm, both inside and outside of SCREEN. But the highlighting and coloring still did not work.

BTW, ls --color rendered the output colorized. I configured the vim to show line numbers and I found they were colorized(green), but the file contents were not. Seems strange...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]