How does Vim load the specified .vimrc?
ringa_lee
ringa_lee 2017-05-16 16:41:29
0
2
783

~/.vimrc is loaded by default when vim starts. How to specify to load .vimrc elsewhere?

ringa_lee
ringa_lee

ringa_lee

reply all(2)
習慣沉默

vim -u 配置文件gvim -U 配置文件

PHPzhong

To load the Vim configuration in the specified directory, this is actually what I did (in the zsh initialization script):

path=(~/lily/bin $path)
export SHELL=/bin/zsh
export MYVIMRC=$HOME/lily/.vim/vimrc
export VIMINIT="let &rtp='$HOME/lily/.vim,' . &rtp
so $MYVIMRC"
export VIMTMP=$HOME/lily/tmpfs
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!