I found that the vimdiff utility is just a soft link to vim. both of the two are located under /usr/bin/ in my Suse11 box. and vimdfiff is a soft link to vim. the interesting thing is that, vimdiff file1 file2 is actually the equivalent of vim -d file1 file2, so in that
sense, the -d option is automatically embedded in the soft link, so my question is as simple as
How?
I found that the vimdiff utility is just a soft link to vim. both
Share
Vim in its
main()function usesargv[0]to differentiate its executable namevimorvimdiff, or etc.Link to vim main.c that performs this check to differentiate
rvim,rview,gvim,gview,vimdiff,gvimdiff,ex,exim.