How do I supress the "2 files to edit" message in vimdiff?
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Orient Looping
--
Chapters
00:00 How Do I Supress The &Quot;2 Files To Edit&Quot; Message In Vimdiff?
00:25 Accepted Answer Score 4
00:54 Answer 2 Score 0
01:06 Thank you
--
Full question
https://superuser.com/questions/545047/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#vim
#avk47
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Orient Looping
--
Chapters
00:00 How Do I Supress The &Quot;2 Files To Edit&Quot; Message In Vimdiff?
00:25 Accepted Answer Score 4
00:54 Answer 2 Score 0
01:06 Thank you
--
Full question
https://superuser.com/questions/545047/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#vim
#avk47
ACCEPTED ANSWER
Score 4
Looking through the vim source, it looks like that message can only be
suppressed when launching the executable as ex
and using its -s
option, or by not having a console.
Neither approach will work for diffing.
However, the message is only output if there is more than one file specified on the command line.
So let's trick it:
vim a -c "vert diffsplit b"
Which basically says "Edit file a with vim, and once a is loaded, open a vertical split with file b and diff them".
ANSWER 2
Score 0
--not-a-term option can suppress the message.
vimdiff --not-a-term a b
Document
:h --not-a-term