Did you try set runtimepath+=/path/to/vimfiles
(note the +=
)? Also it's possible that you need to do that for all the subfolders.
Since you are using Git, you may set the working directory to ~/.vim
on the Mac and whatever it is on the Windows machine making the name of the folder irrelevant.
$ git config worktree /Users/username/.vim
I use DropBox to sync my ~/.vim
folders on all my machines (Mac@work, Mac@home, Ubuntu@home and a Linode VPS somewhere). All the autoload
, bundle
, etc. folders are in a DOTFILES/vim
subfolder of my DropBox and symlinked to ~/.vim/autoload
, ~/.vim/bundle
, ~/.vim/syntax
, etc.
Simply symlinking ~/Dropbox/DOTFILES/vim
to ~/.vim
would work, too, but I wanted to keep the ability to have things specific to a machine stay on this machine. Views, for example.
My .vimrc
contains only these few lines:
source ~/Dropbox/DOTFILES/vimrc
" Quickly edit/reload the vimrc file
nmap <silent> <leader>ev :tabnew ~/Dropbox/DOTFILES/vimrc<CR>
nmap <silent> <leader>sv :so ~/Dropbox/DOTFILES/vimrc<CR>
Setting it up on a new machine would take 2 or 3 minutes max, I guess, and keeping the whole thing up to date is totally effortless.