我手动保存或源文件时没有获取.vimrc

时间:2022-03-10 02:42:44

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. I am using, Mac osx, Yosemite. vim nocompatible mode.

我努力了。 :source $ MYVIMRC,:所以$ MYVIMRC,:source~ / .vimrc,:source~ / .vimrc我也尝试过这种方式实现它。我正在使用,Mac osx,Yosemite。 vim nocompatible模式。

augroup reload_vimrc " {
    autocmd!
    autocmd BufWritePost $MYVIMRC source $MYVIMRC
augroup END " }

1 个解决方案

#1


0  

Remove the " or { like the code below

删除“或{,如下面的代码

augroup reload_vimrc
    autocmd!
    autocmd BufWritePost $MYVIMRC source $MYVIMRC
augroup END

#1


0  

Remove the " or { like the code below

删除“或{,如下面的代码

augroup reload_vimrc
    autocmd!
    autocmd BufWritePost $MYVIMRC source $MYVIMRC
augroup END