summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2011-10-20 18:12:32 +0200
committerBram Moolenaar <bram@vim.org>2011-10-20 18:12:32 +0200
commit58e63e7761a04b244adff0b7754ad84f886729ab (patch)
treebbcaaa8c67d996a2d2f6b29d8f8ae2668917534e /runtime
parent357f3f733ff6478d62fb0ccfa1c31566172b4d07 (diff)
downloadvim-58e63e7761a04b244adff0b7754ad84f886729ab.tar.gz
updated for version 7.3.340v7.3.340v7-3-340
Problem: When 'verbosefile' is set ftplugof.vim can give an error. Solution: Only remove filetypeplugin autocommands when they exist. (Yasuhiro Matsumoto)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/ftplugof.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/ftplugof.vim b/runtime/ftplugof.vim
index cd99ce05..7828ff2c 100644
--- 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