Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我忽略了某些文件扩展名,但我认为如果我可以让 vim 在执行制表符完成时忽略二进制文件(我们可以将二进制定义为具有不可打印字符的文件),那将非常有用。
我在 Linux 而不是 windows 上运行,所以只匹配 .exe 是没有用的。
不,没有这样的设置,我也看不出它有什么用处。特别是在 Unix 上,许多设置了可执行位的文件实际上是脚本(Shell、Perl、Python 等),非常适合用 Vim 进行编辑。
对于 custom :command,您可以自己构建这样的完成(-complete=custom参数,executable()用于测试),但要将其应用于内置命令,您必须修补 Vim 的源代码。
:command
-complete=custom
executable()