diff runtime/ftplugof.vim @ 3139:49b08c9b9f5b v7.3.340

updated for version 7.3.340 Problem: When 'verbosefile' is set ftplugof.vim can give an error. Solution: Only remove filetypeplugin autocommands when they exist. (Yasuhiro Matsumoto)
author Bram Moolenaar <bram@vim.org>
date Thu, 20 Oct 2011 18:12:32 +0200
parents 3fc0f57ecb91
children 179c118424a6
line wrap: on
line diff
--- a/runtime/ftplugof.vim
+++ b/runtime/ftplugof.vim
@@ -1,11 +1,13 @@
 " Vim support file to switch off loading plugins for file types
 "
 " Maintainer:	Bram Moolenaar <Bram@vim.org>
-" Last Change:	2002 Apr 04
+" Last Change:	2011 Oct 20
 
 if exists("did_load_ftplugin")
   unlet did_load_ftplugin
 endif
 
-" Remove all autocommands in the filetypeplugin group
-silent! au! filetypeplugin *
+" Remove all autocommands in the filetypeplugin group, if any exist.
+if exists("#filetypeplugin")
+  silent! au! filetypeplugin *
+endif