Browse files

added autocommand to augroup to prevent deuplication

  • Loading branch information...
1 parent a0cd851 commit 7ab7022c85bbe548d6753b07045263bee2419a7b Rich Alesi committed Nov 30, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 unbundle.vim
View
7 unbundle.vim
@@ -35,9 +35,14 @@ function! Unftbundle(type)
endfunction
" unbundle bundles up front
+" FIXME add this to vimrc file
call Unbundle('bundle/*')
" unbundle ftbundles on demand
-autocmd FileType * :call Unftbundle(expand('<amatch>'))
+augroup unbundle
+ au!
+ autocmd FileType * :call Unftbundle(expand('<amatch>'))
+augroup END
+
runtime! ftbundle/*/*/ftdetect/*.vim
filetype plugin indent on

0 comments on commit 7ab7022

Please sign in to comment.