[英]Setting Environment Variable in vimrc
I want to set an environment variable in vimrc. 我想在vimrc中设置环境变量。 The pseudo code of what I want to do is below
我想做的伪代码如下
if(file x exists in current directory)
path = get absolute path of file x
env = path
How can I do this in vimrc? 我该如何在vimrc中做到这一点?
Thanks 谢谢
XY
ing the problem a little bit vim supports the :cscope add
command (see help entry :h E563
among others) to control which cscope database is currently in use. XY
荷兰国际集团的问题有点VIM支持:cscope add
命令(参见帮助条目:h E563
等)来控制其cscope的数据库正在使用中。
That should be a more direct (and more controllable) method of doing what is desired here. 那应该是一种更直接(且可控制)的方法来完成此处所期望的操作。
如果只需要影响Vim中的PATH,就很简单:
:let $PATH=...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.