[英].vimrc not being sourced when i save or source the file manually
When i write to file, the .vimrc file is not being sourced, meaning i am having to close the terminal then restart. 当我写文件时,.vimrc文件没有被获取,这意味着我必须关闭终端然后重新启动。
I have tried. 我努力了。 :source $MYVIMRC
, :so $MYVIMRC
, :source ~/.vimrc
, :source ~/.vimrc
Also i have tried to implement it this way. :source $MYVIMRC
, :so $MYVIMRC
, :source ~/.vimrc
:so $MYVIMRC
:source ~/.vimrc
, :source ~/.vimrc
:source ~/.vimrc
:source ~/.vimrc
我也尝试过这种方式。 I am using, Mac osx, Yosemite. 我正在使用Mac osx,优胜美地。 vim nocompatible mode. vim不兼容模式。
augroup reload_vimrc " {
autocmd!
autocmd BufWritePost $MYVIMRC source $MYVIMRC
augroup END " }
Remove the " or { like the code below 删除“或{类似下面的代码
augroup reload_vimrc
autocmd!
autocmd BufWritePost $MYVIMRC source $MYVIMRC
augroup END
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.