Browse Source

On Windows, Vim will sometimes have no idea where $HOME actually is. Since the default for Vim user scripts on Windows is "$VIM/vimfiles/", have Vundle direct bundles to that path instead.

On some Windows machines, $HOME is modified to direct to a shared drive or folder, and causes Vim to load to that location, as opposed to directing to the user's actual home directory. This is to avoid cloning Vim scripts to what could be shared drives for collaboration & file sharing.

Signed-off-by: Lee Savide <laughingman182@gmail.com>
pull/627/head
Lee Savide 11 years ago
parent
commit
b9bf02f6b1
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      autoload/vundle.vim

+ 5
- 1
autoload/vundle.vim View File

@ -81,7 +81,11 @@ func! vundle#end(...) abort
endf
" Initialize some global variables used by Vundle.
let vundle#bundle_dir = expand('$HOME/.vim/bundle', 1)
if has('win32') || has('win64')
let vundle#bundle_dir = expand('$VIM/vimfiles/bundle', 1)
else
let vundle#bundle_dir = expand('$HOME/.vim/bundle', 1)
endif
let vundle#bundles = []
let vundle#lazy_load = 0
let vundle#log = []


Loading…
Cancel
Save