diff --git a/autoload/vundle.vim b/autoload/vundle.vim index ca780b9..c668e70 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -23,6 +23,11 @@ com! -nargs=0 BundleDocs com! -nargs=? -bang BundleSearch \ call vundle#scripts#all('!' == '', ) + +au! Filetype vundle call vundle#scripts#setup_view() +au! Syntax vim syn keyword vimCommand Bundle + + func! vundle#rc() let g:bundle_dir = expand('$HOME/.vim/bundle') call vundle#config#init() diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index c787c7e..d949c91 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -34,6 +34,19 @@ func! vundle#scripts#install() abort call vundle#installer#install(0, line) endf +func! vundle#scripts#setup_view() abort + setl hls ro noma ignorecase syntax=vim + + syn keyword vimCommand Bundle + + nnoremap q :wincmd q + nnoremap i :call vundle#scripts#install() + nnoremap r :Bundles + nnoremap c :BundleClean + nnoremap C :BundleClean! + nnoremap R :call vundle#scripts#reload() +endf + func! s:display(headers, results) if !exists('s:browse') | let s:browse = tempname() | endif let results = reverse(map(a:results, ' printf("Bundle ' ."'%s'".'", v:val) ')) @@ -43,6 +56,7 @@ func! s:display(headers, results) wincmd P | wincmd H setl ft=vundle + call vundle#scripts#setup_view() endf func! s:fetch_scripts(to) diff --git a/ftplugin/vim.vim b/ftplugin/vim.vim deleted file mode 100644 index e1dd698..0000000 --- a/ftplugin/vim.vim +++ /dev/null @@ -1 +0,0 @@ -syn keyword vimCommand Bundle diff --git a/ftplugin/vundle.vim b/ftplugin/vundle.vim deleted file mode 100644 index 69ee5e4..0000000 --- a/ftplugin/vundle.vim +++ /dev/null @@ -1,10 +0,0 @@ -setl hls ro noma ignorecase syntax=vim - -syn keyword vimCommand Bundle - -nnoremap q :wincmd q -nnoremap i :call vundle#scripts#install() -nnoremap r :Bundles -nnoremap c :BundleClean -nnoremap C :BundleClean! -nnoremap R :call vundle#scripts#reload()