Disabling vim startup message (vimdiff, vim -o -O)

When opening multiple files with split windows from the command line, vim likes to indicate which file names, number of lines and number of characters for each file. Then the user is prompted to press "Enter" to continue working with good material.

Is there a parameter or switch to disable this? I use this for other than TortoiseSVN, and the message kills my performance when all I want is a quick look at the changes.

+7
vim message startup
source share
2 answers

You need to play with the "shortmess" vim option.

:help shortmess 

Or install it in your .vimrc

 set shortmess=at 

or during vim run

 vim --cmd 'set shortmess=at' 
+7
source share

Mykola Golubyev ist's answer is good, but you probably want to use += instead of = to preserve existing flags.

 set shortmess+=at 

Otherwise, unwanted side effects may occur, similar to those mentioned in the comments above.

+1
source share

All Articles