changeset 286:a29080fb35d9

Add support for local Vim bundle.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 20 Feb 2015 11:44:04 -0800
parents 175fbfef4267
children 44c9d65cfa74
files vim/vimrc
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vim/vimrc	Fri Feb 20 11:41:35 2015 -0800
+++ b/vim/vimrc	Fri Feb 20 11:44:04 2015 -0800
@@ -22,8 +22,10 @@
 " Get the platform we're running on.
 if has("win32") || has("win64") || has("dos32")
     let s:vim_platform = "windows"
+    let s:path_sep = "\\"
 else
     let s:vim_platform = "unix"
+    let s:path_sep = '/'
 endif
 
 " Get our vim directory. 
@@ -39,8 +41,14 @@
 call add(g:pathogen_disabled, 'minibufexpl')
 call add(g:pathogen_disabled, 'ragtag')
 
+" Potentially add the local bundle directory.
+if isdirectory(s:vim_home.s:path_sep.'local')
+    execute 'set runtimepath+='.s:vim_home.s:path_sep.'local'
+endif
+
 " Load pathogen.
-call pathogen#infect()
+"call pathogen#infect()
+call pathogen#runtime_append_all_bundles()
 
 " Hide the toolbar in MacVim/gVIM, and set a nice window size.
 if has("gui_running") && !exists('g:resourcing_vimrc')