On Mon, Dec 12, 2011 at 06:34:02PM +0530, gt wrote: > Well, changing the termName to rxvt, has solved things for now. I know > it's not good to force termNames, but i didn't see any other solution > for now. Let's wait and see if this gives trouble or not. Well i came up with a ridiculous idea, and it works! I was uncomfortable using $TERM=rxvt, so i was looking at better solutions. It was also clear that this problem was affecting only vim. Somewhere i read to set t_Co=256 in vimrc, but that didn't help. What i did instead was to set t_Co=8 and now everything works perfect with $TERM=rxvt-unicode-256color. I don't use 256 colours anyway, so it's not a bother at all. Thanks to everyone for help. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org