comparison vim/vimrc @ 286:a29080fb35d9

Add support for local Vim bundle.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 20 Feb 2015 11:44:04 -0800
parents 8d04d41d4903
children 44c9d65cfa74
comparison
equal deleted inserted replaced
285:175fbfef4267 286:a29080fb35d9
20 let g:sourced_vimrc = 1 20 let g:sourced_vimrc = 1
21 21
22 " Get the platform we're running on. 22 " Get the platform we're running on.
23 if has("win32") || has("win64") || has("dos32") 23 if has("win32") || has("win64") || has("dos32")
24 let s:vim_platform = "windows" 24 let s:vim_platform = "windows"
25 let s:path_sep = "\\"
25 else 26 else
26 let s:vim_platform = "unix" 27 let s:vim_platform = "unix"
28 let s:path_sep = '/'
27 endif 29 endif
28 30
29 " Get our vim directory. 31 " Get our vim directory.
30 let s:vim_home = expand("<sfile>:h") 32 let s:vim_home = expand("<sfile>:h")
31 33
37 let g:pathogen_disabled = [] 39 let g:pathogen_disabled = []
38 call add(g:pathogen_disabled, 'vimroom') 40 call add(g:pathogen_disabled, 'vimroom')
39 call add(g:pathogen_disabled, 'minibufexpl') 41 call add(g:pathogen_disabled, 'minibufexpl')
40 call add(g:pathogen_disabled, 'ragtag') 42 call add(g:pathogen_disabled, 'ragtag')
41 43
44 " Potentially add the local bundle directory.
45 if isdirectory(s:vim_home.s:path_sep.'local')
46 execute 'set runtimepath+='.s:vim_home.s:path_sep.'local'
47 endif
48
42 " Load pathogen. 49 " Load pathogen.
43 call pathogen#infect() 50 "call pathogen#infect()
51 call pathogen#runtime_append_all_bundles()
44 52
45 " Hide the toolbar in MacVim/gVIM, and set a nice window size. 53 " Hide the toolbar in MacVim/gVIM, and set a nice window size.
46 if has("gui_running") && !exists('g:resourcing_vimrc') 54 if has("gui_running") && !exists('g:resourcing_vimrc')
47 set guioptions=-t 55 set guioptions=-t
48 set lines=999 56 set lines=999