我如何告诉vim我的_vimrc和插件是 [英] How can I tell vim where my _vimrc and plugins are
问题描述
在工作,我有gvim安装在 C:/ Program Files / vim
,但没有此文件夹的写入权限。我想让vim使用我的个人 _vimrc
和潜在的一些加载项将在 bundle
目录。
问题是vim选择 C:/ ...
At work I have gvim installed in C:/Program Files/vim
but have no write permission on this folder. I would like vim to use my personal _vimrc
and potentially some addins that would be in a bundle
directory.
Problem is that vim choose the default _vimrc
in C:/...
我可以做什么来解决我的问题,我想到一个脚本,但我不能以书面管理工作...?
What can I do to fix my problem, I was thinking of a script but I can't manage in writing one that work... ?
EDIT:Off course我没有管理员权限
Off course I do not have admin rights
推荐答案
您的配置属于 %HOME%
(如果未设置前者,则为%USERPROFILE%
)。您可以通过设置通过不同的配置脚本通过%MYVIMRC%
环境变量(例如在Windows控制面板的高级系统设置下) -u path / to / vimrc
。 (定义%VIMINIT%
也应该工作,但我没有得到它在Windows上工作。)请参阅:help startup
。
Your configuration belongs in %HOME%
(or %USERPROFILE%
if the former isn't set). You can always override that by setting the passing a different configuration script via %MYVIMRC%
environment variable (e.g. in the Windows Control Panel under Advanced System Settings)-u path/to/vimrc
. (Defining %VIMINIT%
should work, too, but I didn't get it to work on Windows.) See :help startup
for details.
这篇关于我如何告诉vim我的_vimrc和插件是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!