On Fri, Nov 10, 2006 at 09:07:18PM +0100, Paul Bolle wrote:
>
> I once ran into the same problem on Fedora Core 4 (which probably has
> the same default vim configuration as CentOS). Adding these lines
> somewhere at the start of matchit.vim seems to do the trick (and can't
> hurt those with a different configuration):
>
> " load ftplugin if necessary
> if !exists("did_load_ftplugin")
> filetype plugin on
> if !exists("did_load_ftplugin")
> finish
> endif
> endif
>
> (CC-ing Benji Fischer so Benji can consider adding a test like this to
> matchit.)
>
> Regards,
>
>
> Paul Bolle
I do not like the idea of enabling ftplugins from within a (global)
plugin. The
:filetype plugin [indent] on
line, like the
:set nocompatible
belongs in the user's vimrc file. I know that several Linux distros
decide to do both of these (and more) from a system vimrc file, but I do
not like that decision. If you have been using someone else's
configuration choices, and you decide to install vim from sources, you
can either read the docs and configure it yourself or you can continue
to let someone else decide with
:source $VIMRUNTIME/vimrc_example.vim
or
:runtime vimrc_example.vim
I did add a note to the installation details at
http://www.vim.org/scripts/script.php?script_id=39 .
I could also add a note to doc/matchit.txt , but it seems unlikely that
anyone will know enough to install the documentation without also
knowing to enable ftplugins.
HTH --Benji Fisher