[英]How to get the current directory from .vimrc
我想让我的.vimrc知道它的位置,以便可以仅根据.vimrc的位置(对我来说与.vim相同的目录)正确配置vundle。
我目前在vimrc中有此文件(位于〜/ user / .vimfiles / vimrc中):
set rtp+=~/user/.vimfiles/vim/bundle/vundle/
call vundle#rc("~/user/.vimfiles/vim/bundle/")
而且它想使其相对于.vimrc所在的位置,因为它可以根据我所在的盒子而变化。
从VIM帮助菜单中:
getcwd() The result is a String, which is the name of the current
working directory.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.