screen-users
[Top][All Lists]
Advanced

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

Re: vim syntax highlighting does not work in screen


From: Michael Parson
Subject: Re: vim syntax highlighting does not work in screen
Date: Mon, 14 Aug 2006 08:40:22 -0500
User-agent: Mutt/1.4.2.1i

On Mon, Aug 14, 2006 at 11:12:19AM +0800, aladdin wrote:
> 
> Hi, all.
> 
> My vim syntax highlighting does not work in SCREEN.
> 
> The problem occurs under RedHat9, vim 6.1.320, SCREEN 4.00.02, remote
> login with putty.
> 
> I have another Debian Sarge Linux under which vim and SCREEN work well
> together. I checked the screenrc file but cannot find anything help.
> 
> What should I do now?

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
output?

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

$ TERM=xterm vim somescript.pl

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.

-- 
Michael Parson
address@hidden





reply via email to

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