Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
3138:7182e0a6a437 | 3139:49b08c9b9f5b |
---|---|
1 " Vim support file to switch off loading plugins for file types | 1 " Vim support file to switch off loading plugins for file types |
2 " | 2 " |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last Change: 2002 Apr 04 | 4 " Last Change: 2011 Oct 20 |
5 | 5 |
6 if exists("did_load_ftplugin") | 6 if exists("did_load_ftplugin") |
7 unlet did_load_ftplugin | 7 unlet did_load_ftplugin |
8 endif | 8 endif |
9 | 9 |
10 " Remove all autocommands in the filetypeplugin group | 10 " Remove all autocommands in the filetypeplugin group, if any exist. |
11 silent! au! filetypeplugin * | 11 if exists("#filetypeplugin") |
12 silent! au! filetypeplugin * | |
13 endif |