On Aug 9, 2:46 am, björn <[email protected]> wrote:
> 2009/8/9 caruso_g:
>
>
>
> > I am trying to install some plugins into MacVim, I created the folder
> > ~/.vim and I put the plugin into it.
> > But they do not load.
> > More, I also saw that plugins have the same folders structures, so I
> > guessed I had just to copy their content into the same folder in
> > the .vim folder but I got a tags file that was just duplicated into
> > two different plugins, had I to join their contents?
> > Thank to everyone that can help me, it seems really difficult to
> > install plugins in Vim even if all devs just say "unpack it into
> > your .vim folder" it seems not working for me.
>
> This is not a MacVim specific question. Try the vim-use mailing list
> and you'll be certain to get all the answers you need.
>
> Björn
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"
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---