I followed the directions in this post to sync my vimrc
file in Dropbox with my two Windows computers. However, I also want to move all the other user content of my vimfiles
folder to Dropbox as suggested by jqno. I've read the documentation on Vim's initialization steps and environment variables, but can't figure out a way to direct it to my plugin folders, syntax files, color schemes, etc. in Dropbox.
This is my current vimrc
:
let $MYVIMRC = "C:/Users/Norbert/Dropbox/vimfiles/vimrc"
set runtimepath^=$HOME/Dropbox/vimfiles
source $HOME\Dropbox\vimfiles\vimrc
If I copy all the contents of vimfiles
to Dropbox and remove them from my $HOME directory, leaving only this minimal vimrc
, none of my plugins load. If all the files are in their normal location, with only the full vimrc
in Dropbox, everything works.
I've thought of two directions to go with this:
- Have only one
vimfiles
location with full content, located in Dropbox. Find some way to direct Vim to these files by either a relative or absolute path. - Have a
vimfiles
location in Documents or another directory Dropbox can push to, so that each machine receives changes. However, I would still have to move the files on each machine and tell Vim where to look for them.