Browse Source

Updates suggested by @jdevera

pull/419/head
Lucas Hoffmann 12 years ago
parent
commit
e1afbb4842
2 changed files with 10 additions and 8 deletions
  1. +7
    -7
      autoload/vundle/config.vim
  2. +3
    -1
      autoload/vundle/installer.vim

+ 7
- 7
autoload/vundle/config.vim View File

@ -20,7 +20,7 @@ func! vundle#config#init()
let g:bundles = []
endf
" Add a list of bundles to the runtimepath source them.
" Add a list of bundles to the runtimepath and source them.
"
" bundles -- a list of bundle objects
" return -- 0 (unconditionally)
@ -38,7 +38,7 @@ endf
" Create a bundle object from a bundle specification.
"
" name -- the bundle specification as a string
" opts -- the options directory from then bundle definition
" opts -- the options dictionary from then bundle definition
" return -- an initialized bundle object
func! vundle#config#init_bundle(name, opts)
if a:name != substitute(a:name, '^\s*\(.\{-}\)\s*$', '\1', '')
@ -50,12 +50,12 @@ func! vundle#config#init_bundle(name, opts)
return b
endf
" Parse the options which can be supplied with the plugin specification.
" Parse the options which can be supplied with the bundle specification.
" Corresponding documentation: vundle-plugins-configure
"
" opts -- a list, holding a dictionary of options for a bundle
" return -- the dictionary holding the options for a bundle. This will be
" merged with a s:bundle object into one dictionary.
" opts -- a dictionary with the user supplied options for the bundle
" return -- a dictionary with the user supplied options for the bundle, this
" will be merged with a s:bundle object into one dictionary.
func! s:parse_options(opts)
" TODO: improve this
if len(a:opts) != 1 | return {} | endif
@ -73,7 +73,7 @@ endf
" arg -- the string supplied to identify the plugin
" return -- a dictionary with the folder name (key 'name') and the uri (key
" 'uri') for cloning the plugin and the original argument (key
" 'arg')
" 'name_spec')
func! s:parse_name(arg)
let arg = a:arg
let git_proto = exists('g:vundle_default_git_proto') ? g:vundle_default_git_proto : 'https'


+ 3
- 1
autoload/vundle/installer.vim View File

@ -363,7 +363,9 @@ func! g:shellesc_cd(cmd) abort
endif
endf
" Wrapper for system calls. FIXME: Why is this needed?
" Wrapper for system calls. This can be used to change the way system calls
" are made during developing, without searching the whole code base for
" system() calls.
"
" cmd -- the command passed to system() (string)
" return -- the return value from system()


Loading…
Cancel
Save