embed filetype settings

This commit is contained in:
gmarik 2011-04-10 19:47:55 -05:00
parent fc34371fd0
commit 704a6dee95
4 changed files with 19 additions and 11 deletions

View File

@ -23,6 +23,11 @@ com! -nargs=0 BundleDocs
com! -nargs=? -bang BundleSearch com! -nargs=? -bang BundleSearch
\ call vundle#scripts#all('!' == '<bang>', <q-args>) \ 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() func! vundle#rc()
let g:bundle_dir = expand('$HOME/.vim/bundle') let g:bundle_dir = expand('$HOME/.vim/bundle')
call vundle#config#init() call vundle#config#init()

View File

@ -34,6 +34,19 @@ func! vundle#scripts#install() abort
call vundle#installer#install(0, line) call vundle#installer#install(0, line)
endf 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) func! s:display(headers, results)
if !exists('s:browse') | let s:browse = tempname() | endif if !exists('s:browse') | let s:browse = tempname() | endif
let results = reverse(map(a:results, ' printf("Bundle ' ."'%s'".'", v:val) ')) let results = reverse(map(a:results, ' printf("Bundle ' ."'%s'".'", v:val) '))
@ -43,6 +56,7 @@ func! s:display(headers, results)
wincmd P | wincmd H wincmd P | wincmd H
setl ft=vundle setl ft=vundle
call vundle#scripts#setup_view()
endf endf
func! s:fetch_scripts(to) func! s:fetch_scripts(to)

View File

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

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>