diff --git a/cfg-pre/75-neobundle.vim b/cfg-pre/75-neobundle.vim index a6e7b4d..d9246b5 100644 --- a/cfg-pre/75-neobundle.vim +++ b/cfg-pre/75-neobundle.vim @@ -64,31 +64,8 @@ endfor call neobundle#end() -" Function that runs NeoBundleCheck after enabling all filetype bits; it -" restores them on exit 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 NeoBundleCheck 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