When i write to file, the .vimrc file is not being sourced, meaning i am having to close the terminal then restart.
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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.