ipwnponies
ipwnponies

Reputation: 219

Disabling vim's startup message (vimdiff, vim -o -O ones)

When using opening multiple files with split windows from the command line, vim likes to state what the file names are, the line count, and the character count, for each file. Then the user is prompted to press enter to continue on to the good stuff.

Is there an setting or switch to disable this? I'm using this for diffing with TortoiseSVN and the message is killing my productivity when all I want is a quick glance at the changes.

Upvotes: 8

Views: 10514

Answers (2)

maria s
maria s

Reputation: 281

Mykola Golubyev's answer ist good, but you probably want to use += instead of = in order to keep the flags that are already present.

set shortmess+=at

Otherwise it might have unwanted side effects like those mentioned in the above comments.

Upvotes: 7

Mykola Golubyev
Mykola Golubyev

Reputation: 59814

You have to play with 'shortmess' vim option.

:help shortmess

Either set it in your .vimrc

set shortmess=at

or during the vim run

vim --cmd 'set shortmess=at'

Upvotes: 10

Related Questions