From 1a9474326250ebb27b6284e8c95b0cda85f01d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Mon, 9 Mar 2015 08:49:05 +0100 Subject: [PATCH] Removed useless stuff in DoNeoBundleCheck --- cfg-pre/75-neobundle.vim | 23 ----------------------- 1 file changed, 23 deletions(-) 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