Browse Source

embed filetype settings

pull/25/merge
gmarik 15 years ago
parent
commit
704a6dee95
4 changed files with 19 additions and 11 deletions
  1. +5
    -0
      autoload/vundle.vim
  2. +14
    -0
      autoload/vundle/scripts.vim
  3. +0
    -1
      ftplugin/vim.vim
  4. +0
    -10
      ftplugin/vundle.vim

+ 5
- 0
autoload/vundle.vim View File

@ -23,6 +23,11 @@ com! -nargs=0 BundleDocs
com! -nargs=? -bang BundleSearch
\ call vundle#scripts#all('!' == '<bang>', <q-args>)
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()


+ 14
- 0
autoload/vundle/scripts.vim View File

@ -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 <buffer> q :wincmd q<CR>
nnoremap <buffer> i :call vundle#scripts#install()<CR>
nnoremap <buffer> r :Bundles
nnoremap <buffer> c :BundleClean<CR>
nnoremap <buffer> C :BundleClean!<CR>
nnoremap <buffer> R :call vundle#scripts#reload()<CR>
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)


+ 0
- 1
ftplugin/vim.vim View File

@ -1 +0,0 @@
syn keyword vimCommand Bundle

+ 0
- 10
ftplugin/vundle.vim View File

@ -1,10 +0,0 @@
setl hls ro noma ignorecase syntax=vim
syn keyword vimCommand Bundle
nnoremap <buffer> q :wincmd q<CR>
nnoremap <buffer> i :call vundle#scripts#install()<CR>
nnoremap <buffer> r :Bundles
nnoremap <buffer> c :BundleClean<CR>
nnoremap <buffer> C :BundleClean!<CR>
nnoremap <buffer> R :call vundle#scripts#reload()<CR>

Loading…
Cancel
Save