This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bad XTerm Vim coloring


On Mon, 24 Nov 2008, Nick Deubert wrote:

Hey everyone,
First off thanks for your hard work on cygwin/X it is very
appreciated. I upgraded to the new Xorg last week and I have had one
really annoying issue ever since. Something about the new XTerm is
messing up vim syntax coloring. With vim I have syntax on and
background=dark and usually the coloring look like this:
http://nd.dyndns.org:443/downloads/correct_coloring.PNG but now when I
open a file in vim it looks like that for a split second then a ton of
gibberish quickly scrolls in the right side of the vim ruler and when
it stops my syntax is colors are all messed up and are colored like
this: http://nd.dyndns.org:443/downloads/bad_coloring.PNG

Now I think this is a problem with XTerm not vim because when I ssh

I can't tell - but you can capture the output of vim using 'script' and we can inspect the output of vim, to see if it is well-formed.

(While it's possible that cygwin's xterm is configured with different
options than on some other system, xterm should ignore - not echo -
well-formed control sequences that it doesn't understand).

into other machines and run vim there, with different configuration
files, the same thing happens. Also if I remove my .vimrc and start
vim, and manually do :syntax on and :set background=dark it seems
fine. It seems like there could be something going on with the inital
opening of vim and it talking to the xterm that is going weird. Also

vim may talk to xterm to find what the function-keys send (I added a few new keys in the last version or so, but vim "shouldn't" be confused by that...). Seeing exactly what was written to the xterm would give some clues - along with finding what configure options were used to build the cygwin package for xterm.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]