Merge pull request #416 from lucc/api

Readability improvement for the vim commands.
This commit is contained in:
Jeremy Pallats/starcraft.man 2014-03-28 16:27:24 -04:00
commit 90dd826199
2 changed files with 20 additions and 44 deletions

View File

@ -12,13 +12,13 @@ com! -nargs=? -bang -complete=custom,vundle#scripts#complete PluginInstall
\ call vundle#installer#new('!' == '<bang>', <q-args>) \ call vundle#installer#new('!' == '<bang>', <q-args>)
com! -nargs=? -bang -complete=custom,vundle#scripts#complete PluginSearch com! -nargs=? -bang -complete=custom,vundle#scripts#complete PluginSearch
\ call vundle#scripts#all('!'=='<bang>', <q-args>) \ call vundle#scripts#all('!' == '<bang>', <q-args>)
com! -nargs=? -bang -complete=custom,vundle#scripts#complete Plugins com! -nargs=? -bang -complete=custom,vundle#scripts#complete Plugins
\ call vundle#scripts#all('!'=='<bang>', <q-args>) \ call vundle#scripts#all('!' == '<bang>', <q-args>)
com! -nargs=0 -bang PluginList com! -nargs=0 -bang PluginList
\ call vundle#installer#list('!'=='<bang>') \ call vundle#installer#list('!' == '<bang>')
com! -nargs=? -bang PluginClean com! -nargs=? -bang PluginClean
\ call vundle#installer#clean('!' == '<bang>') \ call vundle#installer#clean('!' == '<bang>')
@ -30,45 +30,21 @@ com! -nargs=0 PluginDocs
com! PluginUpdate PluginInstall! com! PluginUpdate PluginInstall!
" Vundle Aliases " Vundle Aliases
com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleInstall com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleInstall PluginList<bang> <args>
\ call vundle#installer#new('!' == '<bang>', <q-args>) com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleSearch PluginSearch<bang> <args>
com! -nargs=? -bang VundleClean PluginClean<bang>
com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleSearch com! -nargs=0 VundleDocs PluginDocs
\ call vundle#scripts#all('!'=='<bang>', <q-args>)
com! -nargs=? -bang VundleClean
\ call vundle#installer#clean('!' == '<bang>')
com! -nargs=0 VundleDocs
\ call vundle#installer#helptags(g:bundles)
" Aliases
com! VundleUpdate PluginInstall! com! VundleUpdate PluginInstall!
" deprecated " deprecated
com! -nargs=+ Bundle com! -nargs=+ Bundle call vundle#config#bundle(<args>)
\ call vundle#config#bundle(<args>) com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall PluginInstall<bang> <args>
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleSearch PluginSearch<bang> <args>
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall com! -nargs=? -bang -complete=custom,vundle#scripts#complete Bundles Plugins<bang> <args>
\ call vundle#installer#new('!' == '<bang>', <q-args>) com! -nargs=0 -bang BundleList PluginList<bang>
com! -nargs=? -bang BundleClean PluginClean<bang>
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleSearch com! -nargs=0 BundleDocs PluginDocs
\ call vundle#scripts#all('!'=='<bang>', <q-args>) com! BundleUpdate PluginInstall!
com! -nargs=? -bang -complete=custom,vundle#scripts#complete Bundles
\ call vundle#scripts#all('!'=='<bang>', <q-args>)
com! -nargs=0 -bang BundleList
\ call vundle#installer#list('!'=='<bang>')
com! -nargs=? -bang BundleClean
\ call vundle#installer#clean('!' == '<bang>')
com! -nargs=0 BundleDocs
\ call vundle#installer#helptags(g:bundles)
" Aliases
com! BundleUpdate BundleInstall!
if (has('signs')) if (has('signs'))
sign define Vu_error text=! texthl=Error sign define Vu_error text=! texthl=Error
@ -85,6 +61,6 @@ func! vundle#rc(...) abort
let g:bundle_dir = len(a:000) > 0 ? expand(a:1, 1) : expand('$HOME/.vim/bundle', 1) let g:bundle_dir = len(a:000) > 0 ? expand(a:1, 1) : expand('$HOME/.vim/bundle', 1)
let g:updated_bundles = [] let g:updated_bundles = []
let g:vundle_log = [] let g:vundle_log = []
let g:vundle_changelog = ['Updated Bundles:'] let g:vundle_changelog = ['Updated Plugins:']
call vundle#config#init() call vundle#config#init()
endf endf

View File

@ -138,10 +138,10 @@ func! vundle#scripts#view(title, headers, results)
nnoremap <buffer> h :h vundle<CR> nnoremap <buffer> h :h vundle<CR>
nnoremap <buffer> ? :norm h<CR> nnoremap <buffer> ? :norm h<CR>
nnoremap <buffer> c :BundleClean<CR> nnoremap <buffer> c :PluginClean<CR>
nnoremap <buffer> C :BundleClean!<CR> nnoremap <buffer> C :PluginClean!<CR>
nnoremap <buffer> s :BundleSearch nnoremap <buffer> s :PluginSearch
nnoremap <buffer> R :call vundle#scripts#reload()<CR> nnoremap <buffer> R :call vundle#scripts#reload()<CR>
" goto first line after headers " goto first line after headers