在加载了一个名为[utl.vim][1]的插件之后,我需要找到一些配置行。
文档说,我需要把这些配置放到after-directory中
[23] NOte that you cannot include this line in your .vimrc because it is
:source'd before utl_rc.vim (which defines g:utl_cfg_hdl_mt_generic).
So either include/change it at <url:config:#r=utl_cfg_hdl_mt_text_directory>
or include it in the after-directory, see <url:vimhelp:after-directory#5.>我在utl.vim目录中创建了一个名为~/.vim/after/的文件。
但是这个文件没有来源。我使用:scriptnames验证了这一点。
如何确保Vim在加载utl.vim插件后获得该文件?
发布于 2016-03-08 12:48:35
Vim加载的文件/目录列表在:help startup中进行了描述。尽管它列出了plugin目录,但它没有提到after目录,所以您看到的是预期的行为。
通常,after目录是文件类型插件的源代码,正如Vim FAQ 26.3 -“如何扩展现有的文件类型插件?”中所解释的那样。插件可能会运行类似于:runtime! after/**/*.vim的程序,但是如果文档不清楚,应该向插件作者询问,因为用户可能更容易设置这个变量,而且插件可以为其附加/预置默认值。
https://stackoverflow.com/questions/35866712
复制相似问题