jsp
jsp

Reputation: 1285

restore vim session without opening [no name] buffer

I use the following viminfo setting in my .vimrc to restore my last session.

set viminfo='10,\"100,:20,%,n~/.viminfo

It works as expected, except for one detail: When I start vim with no command line parameters, it restores all my buffers, but it also opens a [no name] buffer with the vim version number, etc. and starts me in this [no name] buffer. I then :bd this buffer and continue on my way.

How can I restore my session without opening the [no name] buffer?

I tried replacing my entire .vimrc with a single set viminfo=... line like the one above, but the problem persists.

I am using vim 7.3. I am not using gvim.

Upvotes: 3

Views: 902

Answers (1)

Dan Schnau
Dan Schnau

Reputation: 1535

put this line in your _vimrc:

set shortmess+=I

Tested this out successfully in vim on Windows 7

Upvotes: 1

Related Questions