[英]How to tell Vim not to use ~/.vim
By default Vim is looking for plugins and other stuff in ~/.vim
. 默认情况下,Vim正在寻找~/.vim
插件和其他内容。
Is there any way to tell Vim to search for plugins, etc. in ~/.other_folder
and force it to ignore ~/.vim
entirely? 有没有办法告诉Vim在~/.other_folder
搜索插件等,并强制它完全忽略~/.vim
?
Vim uses the comma-separated paths from 'runtimepath'
to determine where to look for :runtime
'd files. Vim使用'runtimepath'
逗号分隔的路径来确定在哪里查找:runtime
'd文件。
You can change that option either in ~/.vimrc
(which is sourced as the very first script), or by passing the set rtp=...
commands on Vim's command-line via --cmd
(the commands passed with -c
are only applied after startup). 您可以在~/.vimrc
(源自第一个脚本)中更改该选项,或者通过--cmd
在Vim的命令行上传递set rtp=...
命令(使用-c
传递的命令是仅在启动后应用)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.