Removed useless stuff in DoNeoBundleCheck

This commit is contained in:
Emmanuel BENOîT 2015-03-09 08:49:05 +01:00
parent 3376d3093c
commit 1a94743262

View file

@ -64,31 +64,8 @@ endfor
call neobundle#end() call neobundle#end()
" Function that runs NeoBundleCheck after enabling all filetype bits; it
" restores them on exit
function! DoNeoBundleCheck() function! DoNeoBundleCheck()
" Save current filetype settings
let s:has_ft = exists( "g:did_load_filetypes" )
let s:has_fti = exists( "g:did_indent_on" )
let s:has_ftp = exists( "g:did_load_ftplugin" )
" Enable filetype with both indent and plugins
if !( s:has_ft && s:has_fti && s:has_ftp )
filetype plugin indent on
endif
" Let NeoBundle check for installations " Let NeoBundle check for installations
NeoBundleCheck NeoBundleCheck
call neobundle#call_hook( "on_post_source" ) call neobundle#call_hook( "on_post_source" )
" Restore filetype settings
if ! s:has_fti
filetype indent off
endif
if ! s:has_ftp
filetype plugin off
endif
if ! s:has_ft
filetype off
endif
endfunction endfunction