1

i have asked this question and so far nobody seems to be able to come up with a reasonable reason as to why my resource file is not being resourced. :source $MYVIMRC :so ~/.vimrc

 au BufWritePost .vimrc source ~/.vimrc

:echo $MYVIMRC == /Users/******/.vimrc. Any help would be greatly appreciated as a week to having this problem (new mac) i am having to exit vim and re enter.

1 Answers1

2

I think there can be a possible problem with how the files are called within each platform. Try cross-platform solution found here:

au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') && filereadable($MYGVIMRC) | so $MYGVIMRC | endif

or better

augroup myvimrc
    au!
    au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') && filereadable($MYGVIMRC) | so $MYGVIMRC | endif
augroup END
Community
  • 1
  • 1
ryuichiro
  • 3,765
  • 1
  • 16
  • 21