[英]What does +— mean in vimdiff output file? How to turn it off?
[英]how does the softlink vimdiff be implemented
我发现vimdiff
实用程序只是vim的软链接。 这两个都位于我的Suse11框中的/usr/bin/
下。 和vimdfiff
是vim的软链接。 有趣的是, vimdiff file1 file2
实际上相当于vim -d file1 file2
,所以从这个意义上说, -d
选项会自动嵌入到软链接中,所以我的问题就像How一样简单?
其main()
函数中的Vim使用argv[0]
来区分其可执行文件名vim
或vimdiff
等。
链接到vim main.c执行此检查以区分rvim
, rview
, gvim
, gview
, vimdiff
, gvimdiff
, ex
, exim
。
/*
* Check for: [r][e][g][vi|vim|view][diff][ex[im]]
* If the next character is "e" we run in Easy mode.
* If the next character is "g" we run the GUI version.
* If the next characters are "view" we start in readonly mode.
* If the next characters are "diff" or "vimdiff" we start in diff mode.
* If the next characters are "ex" we start in Ex mode. If it's followed
* by "im" use improved Ex mode.
*/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.