Welcome to WebmasterWorld Guest from 54.167.71.219

Forum Moderators: bakedjake

Message Too Old, No Replies

vim: don't show last file edited above shell prompt

     
8:54 am on Jan 14, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:July 24, 2002
posts:1124
votes: 0


hi,

on our new server, everytime i exit from vim, the last file remains on my screen above the shell prompt. on our previous one it disappeared and i was able to see my last commands.

i can't find any setting in .vimrc which is different. does anyone know how to disable this?

many thanks

12:51 pm on Jan 14, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 25, 2004
posts:2156
votes: 0


Hi,

I believe it depends more on your terminal characteristics and termcap than on any particular vi[m] settings.

Just type 'clear' or the equivalent at the shell, or use your terminal's 'clear scrollback' feature if leaving stuff on the screen is a problem.

Rgds

Damon

5:26 pm on Jan 15, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:July 24, 2002
posts:1124
votes: 0


thanks damon,

my eyes glazed over looking at /etc/termcap ;) the clear tip is a good one.

james