Mercurial > vim
changeset 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 | 7182e0a6a437 |
children | c70481d40802 |
files | runtime/ftplugof.vim src/version.c |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
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