diff options
Diffstat (limited to 'vim/plugin/user_ftplugin.vim')
-rw-r--r-- | vim/plugin/user_ftplugin.vim | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vim/plugin/user_ftplugin.vim b/vim/plugin/user_ftplugin.vim deleted file mode 100644 index d19348ae..00000000 --- a/vim/plugin/user_ftplugin.vim +++ /dev/null @@ -1,27 +0,0 @@ -" -" user_ftplugin.vim: When switching filetypes, look for a b:undo_user_ftplugin -" variable and use it in much the same way the core's ftplugin.vim does -" b:undo_ftplugin in Vim >= 7.0. This allows you to undo your own ftplugin -" files the same way you can the core ones. -" -" Author: Tom Ryder <tom@sanctum.geek.nz> -" License: Same as Vim itself -" -if exists('g:loaded_user_ftplugin') - \ || !has('autocmd') - \ || &compatible - finish -endif -let g:loaded_user_ftplugin = 1 - -function! s:LoadUserFtplugin() - if exists('b:undo_user_ftplugin') - execute b:undo_user_ftplugin - unlet b:undo_user_ftplugin - endif -endfunction - -augroup user_ftplugin - autocmd! - autocmd FileType * call s:LoadUserFtplugin() -augroup END |