Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

when I use vim to open some php files, it starts with line 2, other files display fine. When I view the file with less I have the same issue. however when I edit it with nano I can see that line's in the file and my php works properly when I run it in browser. Like I said, it's only on some files others display the first line correctly.

ALSO if I use the right arrow key to move around some of the lines in the file will be replaced by the corresponding text in the previous line except the last character, again this isn't every line in the file, just some. It's very odd.

share|improve this question
up vote 3 down vote accepted

You have a mismatch between the value of the environment variable TERM and the terminal-emulation mode of your console/ssh-client/telnet-client/terminal.

share|improve this answer
thanks! that was driving me crazy. – JKirchartz Mar 14 '12 at 19:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.