I also need to exchange configuration files for vim and other applications between several systems, and I found that git was not only excessive, but also required manual synchronization on each system in order to receive the latest updates and post changes. The best solution for me is to put these configuration files in Dropbox, make all my systems connected to my Dropbox account, and create symbolic links to these shared files.
For example, I placed the vimrc file under Dropbox/conf/vimrc
and then did
ln -s ~/Dropbox/conf/vimrc ~/.vimrc
You should be able to use Windows' mklink
for a similar effect to create a _vimrc
symbolic link to the same file. In the same way, the Dropbox/conf/vim
shared directory can be linked locally as .vim
or .vimfiles
or whatever your preferred vim executable is.
Dropbox keeps a history of changes over the past 30 days, which is enough to handle recovering most of the problems for which I need git. The best part is that you can add this new macro or setting to your .vimrc
, and it will be automatically available for all your systems.
Of course, this approach is also convenient for your other configuration files ( .gitconfig
, .gitignore
, .bashrc
, etc.).
source share