This is indeed not a MacVim-specific question. It has, however, an
answer.
There are several kinds of plugins:
- Global plugins, sourced once at every startup, which can have any
valid filename (ending in .vim). User-specific ones go (on Unix or
MacOsX) in ~/.vim/plugin/ or ~/.vim/after/plugin/. Here and everywhere
below, replace ~/.vim/ by $VIM/vimfiles/ for system-wide scripts.
- Filetype-plugins: they go in ~/.vim/ftplugin/ or ~/.vim/ftplugin/
and their basename (the name without the .vim extension) must be
identical to the concerned 'filetype'.
- Syntax plugins: they go in ~/.vim/syntax/ or ~/.vim/after/syntax and
their basename must be the same as the 'syntax' name.
- Indent plugins (in ~/.vim/indent/ or ~/.vim/after/indent/) whose
basename is, again, same as the 'filetype'.
- Other scripts (such as keymaps, colorschemes, compiler scripts,
etc.) are usually not called plugins but they each have their own
subdirectories. Only "general" scripts which don't run in families
(e.g. filetype.vim) are put straight into $VIMRUNTIME/ (but not by
you), $VIM/vimfiles/ or ~/.vim/.
See also
:help 'runtimepath'
:help after-directory
Best regards,
Tony.
--
Mustgo, n.:
Any item of food that has been sitting in the refrigerator so
long it has become a science project.
-- Sniglets, "Rich Hall & Friends"