Basically, vim behaves strange under iTerm2 (it works normally in Terminal). It sets the cursor in a non existing lines, it displays garbage (content from other lines) when I try to edit a line in a file etc. It is completely useless 🙁
I changed "reported terminal type" to "linux" as suggested in some post, but it didn't help
EDIT
- iTerm2 version: Build 1.0.0.20120724 (very latest)
- running with
env TERM=xterm vim
andenv TERM=xterm-256color vim
does not help
Best Answer
Apparently, removing
set lines=40
does the trick. The manual says:so be careful when you copy-paste ready configs, as I did :)