Support for local bundles installation
This commit is contained in:
parent
3b0cc6b26a
commit
291d58c9a8
1 changed files with 11 additions and 2 deletions
|
@ -1,8 +1,17 @@
|
|||
" Load and initialise NeoBundle and plugins
|
||||
|
||||
if !exists( "g:bundles_dir" )
|
||||
if exists( "g:vim_local['local_bundles']" )
|
||||
if !exists( "g:vim_local['vardata']" )
|
||||
echo "Local bundles requested, but local data directory is not set."
|
||||
endif
|
||||
let g:bundles_dir = GetVardataPath( "bundles" )
|
||||
else
|
||||
let g:bundles_dir = g:vim_vardata . "/bundles/"
|
||||
elseif g:bundles_dir !~ "/$"
|
||||
endif
|
||||
endif
|
||||
|
||||
if g:bundles_dir !~ "/$"
|
||||
let g:bundles_dir = g:bundles_dir . "/"
|
||||
endif
|
||||
if !CreateDirectoryIfNecessary( g:bundles_dir )
|
||||
|
|
Loading…
Reference in a new issue