Browse Source

Undoing delayed init, seems like a dead end for speedup.

pull/418/head
Jeremy Pallats/starcraft.man 12 years ago
parent
commit
b8e8166d61
5 changed files with 7 additions and 35 deletions
  1. +3
    -4
      README.md
  2. +0
    -10
      autoload/vundle.vim
  3. +0
    -15
      autoload/vundle/config.vim
  4. +3
    -4
      doc/vundle.txt
  5. +1
    -2
      test/vimrc

+ 3
- 4
README.md View File

@ -46,14 +46,15 @@
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/
call vundle#begin()
call vundle#rc()
" alternatively, pass where Vundle should install plugins
"call vundle#begin('~/some/plugin/directory')
"call vundle#rc('~/some/plugin/directory')
" let Vundle manage Vundle, required
Plugin 'gmarik/vundle'
" The following are examples of different formats supported.
" Plugins are available for use after the Plugin command returns.
" plugins on GitHub repos
Plugin 'tpope/vim-fugitive' "A plugin for git integration
" plugins from http://vim-scripts.org/vim/scripts.html
@ -69,8 +70,6 @@
" Use to avoid plugin name collisions.
Plugin 'FuzzyFinder', {'name': 'finder'}
" Plugins available after vundle#end() finishes.
call vundle#end()
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on


+ 0
- 10
autoload/vundle.vim View File

@ -56,16 +56,6 @@ sign define Vu_deleted text=- texthl=Comment
sign define Vu_helptags text=* texthl=Comment
endif
func! vundle#begin(...) abort
call call('vundle#rc', a:000)
com! -nargs=+ -bar Plugin call vundle#config#bundle_lazy(<args>)
endf
func! vundle#end(...) abort
call vundle#config#activate_all_plugins()
com! -nargs=+ -bar Plugin call vundle#config#bundle(<args>)
endf
func! vundle#rc(...) abort
let g:bundle_dir = len(a:000) > 0 ? expand(a:1, 1) : expand('$HOME/.vim/bundle', 1)
let g:bundles = []


+ 0
- 15
autoload/vundle/config.vim View File

@ -7,21 +7,6 @@ func! vundle#config#bundle(arg, ...)
return bundle
endf
" Add a plugin to be initialized later.
"
" arg -- a string specifying the plugin
" ... -- a dictionary of options for the plugin
func! vundle#config#bundle_lazy(arg, ...)
call add(s:lazy_bundles, [a:arg, a:000])
endf
" Add all plugins in s:lazy_bundles to the runtimepath.
func! vundle#config#activate_all_plugins()
call extend(g:bundles, map(s:lazy_bundles, 'vundle#config#init_bundle(v:val[0], v:val[1])'))
call s:rtp_add_a()
call s:rtp_add_defaults()
endf
func! vundle#config#require(bundles) abort
for b in a:bundles
call s:rtp_add(b.rtpath)


+ 3
- 4
doc/vundle.txt View File

@ -74,14 +74,15 @@ more information.
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/
call vundle#begin()
call vundle#rc()
" alternatively, pass where Vundle should install plugins
"call vundle#begin('~/some/plugin/directory')
"call vundle#rc('~/some/plugin/directory')
" let Vundle manage Vundle, required
Plugin 'gmarik/vundle'
" The following are examples of different formats supported.
" Plugins are available for use after the Plugin command returns.
" plugins on GitHub repos
Plugin 'tpope/vim-fugitive' "A plugin for git integration
" plugins from http://vim-scripts.org/vim/scripts.html
@ -97,8 +98,6 @@ more information.
" Use to avoid plugin name collisions.
Plugin 'FuzzyFinder', {'name': 'finder'}
" Plugins available after vundle#end() finishes.
call vundle#end()
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on


+ 1
- 2
test/vimrc View File

@ -16,7 +16,7 @@ runtime macros/matchit.vim
" This test should be executed in "test" directory
exec 'set rtp^='.bundle_dir.'vundle/'
call vundle#begin(bundle_dir)
call vundle#rc(bundle_dir)
Plugin 'molokai' " vim-scripts name
@ -53,7 +53,6 @@ Bundle 'vim-scripts/RubySinatra'
" syntax issue #203
Bundle 'jimenezrick/vimerl'
call vundle#end()
filetype plugin indent on " Automatically detect file types.
set wildignore+=doc " should not break helptags


Loading…
Cancel
Save