25h sequences in VIM?

This post was written on 2006/07/29 at 14:14:37 by Horst Gutmann

I'm currently evaluating FreeBSD as some kind of alternative to Gentoo for one of my machines I naturally also installed VIM right away. A little bit later I noticed a quite annoying problem: In the upper left corner the string "25h" which seemed to be the rest of some loose escape sequence. The same string also got appended to the rendering of any character I wrote.

What caused it? Well, I also copied over my .vimrc from my PowerBook and this held following line:

   set term=xterm-color
   

Well, nice idea, but does only work if you're using xterm-color ;) So after resetting the terminal to "cons25" everything worked again, but it took me quite some time finding the real culprit. I already knew that it must have had something to do with $TERM (thanks to some excessive googling for a few hours), but I couldn't really find where I had set it incorrectly ;)

Comments:

  • Matthew Delfino (Guest)

    Thanks, this really helped me tonight. I am a Macintosh Systems Engineer working on becoming a UNIX Systems Engineer. I put FreeBSD on an old Compaq Presario I recently acquired and I was having a BITCH of a time getting vim to work as I wanted it to and the "25h" anomaly was driving me nuts! I had the TERM=xterm-color in my ~/.bash_profile file. I changed it to cons25, like you said and, voilá! I'm back in business without sacrificing my colors!

    Thanks a million!

    Dec. 27, 2006, 4:15 a.m.

  • huangxi (Guest)

    THX. I got the same problem tonight.

    April 9, 2007, 3:02 p.m.

*'d input fields are required.