# HG changeset patch # User Ludovic Chabant # Date 1424461444 28800 # Node ID a29080fb35d934f3410c0aa127a0fb39f0a0efd8 # Parent 175fbfef4267fa766e14ac2df1dd38e051c0cf04 Add support for local Vim bundle. diff -r 175fbfef4267 -r a29080fb35d9 vim/vimrc --- 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')