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 插件有自己的“ftplugin”目录。 (例如:https ://github.com/rust-lang/rust.vim )
如何加载这些?
您需要将 runtimepath 设置为包含 rust.vim 的文件夹。
您可以手动设置它(:set rtp+=path/to/folder)或用户插件管理器,如:Vim-plug,Vundle.....
:help runtimepath 或 :h rtp - 获取详细帮助
: 设置 rtp? - 查看所有运行时路径