Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 940
ipwnponies Avatar asked Mar 14 '09 07:03

ipwnponies


2 Answers

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'
like image 119
Mykola Golubyev Avatar answered Oct 17 '22 12:10

Mykola Golubyev


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.

like image 31
maria s Avatar answered Oct 17 '22 13:10

maria s