What is the best way to sync my vimrc to multiple computers, I have multiple different linux and windows installations that I would like it to be synced to and would prefer to rely on some sort of cloud based system. Currently I am using dropbox, but it seems like dropbox will only sync stuff actually in the dropbox folder. I would prefer for this to happen in the background, but if I have to run a script that won't be a problem.
I keep all of my dot files (including my .vimrc and my other .vim stuff) in a git repository. I then have a script which creates symlinks in my home directory to all of the config files in my git repository. As long as it isn't too many files, I imagine you could manually generate those symlinks if you had to. The nice thing about this setup is that when I pull into the config repository, all of my config files in my home directory are updated, since they are just symlinks. You could do a similar thing with dropbox by having symlinks into your dropbox folder. I would recommend writing a script which can crawl a dotfiles subfolder in your dropbox folder and generate the needed links. Since you are on both Windows and Linux, you may need two scripts, one which uses
mklink and the other which uses
ln -s respectively. For more information on how this can be done, checkout this lifehacker article. Once you have these links (or have your script generate the links), when dropbox automatically updates your files, the changes will be automatically happen to all your machines. The only catch is that if you add a new file (rather than update an existing one), you'll need to remember to re-run your symlink script.