diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 68be06d..bcb0ab6 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -26,9 +26,6 @@ com! -nargs=0 BundleDocs \ call vundle#installer#helptags(g:bundles) -au Filetype vundle call vundle#scripts#setup_view() -au Syntax vim syn keyword vimCommand Bundle - if (has('signs')) sign define Vu_error text=! texthl=Error sign define Vu_active text=> texthl=Comment diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 1494dc6..3cac1b0 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -22,31 +22,6 @@ func! vundle#scripts#complete(a,c,d) return join(s:load_scripts(0),"\n") endf -func! vundle#scripts#setup_view() abort - setl cursorline nonu - setl ro noma ignorecase syntax=vim - if (exists('&relativenumber')) | setl norelativenumber | endif - - syn keyword vimCommand Bundle - - com! -buffer -bang -nargs=1 DeleteBundle call vundle#installer#delete('!' == '', ) - com! -buffer -bang -nargs=? InstallBundle call vundle#installer#install('!' == '', ) - com! -buffer -nargs=0 VundleLog call s:view_log() - - nnoremap q :silent bd! - nnoremap d :exec 'Delete'.getline('.') - - nnoremap i :exec 'Install'.getline('.') - nnoremap I :exec 'Install'.substitute(getline('.'), '^Bundle ', 'Bundle! ', '') - - nnoremap l :VundleLog - - nnoremap c :BundleClean - nnoremap C :BundleClean! - nnoremap r :BundleSearch - nnoremap R :call vundle#scripts#reload() -endf - func! s:view_log() if !exists('b:log_file') | let b:log_file = tempname() | endif call writefile(g:vundle_log, b:log_file) @@ -74,7 +49,29 @@ func! vundle#scripts#view(title, headers, results) setl buftype=nofile setl noswapfile - call vundle#scripts#setup_view() + setl cursorline nonu + setl ro noma ignorecase syntax=vim + if (exists('&relativenumber')) | setl norelativenumber | endif + + syn keyword vimCommand Bundle + + com! -buffer -bang -nargs=1 DeleteBundle call vundle#installer#delete('!' == '', ) + com! -buffer -bang -nargs=? InstallBundle call vundle#installer#install('!' == '', ) + com! -buffer -nargs=0 VundleLog call s:view_log() + + nnoremap q :silent bd! + nnoremap d :exec 'Delete'.getline('.') + + nnoremap i :exec 'Install'.getline('.') + nnoremap I :exec 'Install'.substitute(getline('.'), '^Bundle ', 'Bundle! ', '') + + nnoremap l :VundleLog + + nnoremap c :BundleClean + nnoremap C :BundleClean! + nnoremap r :BundleSearch + nnoremap R :call vundle#scripts#reload() + " goto first line after headers exec ':'.(len(a:headers) + 1) endf