How to install plugins in MacVim

1,381 views
Skip to first unread message

caruso_g

unread,
Aug 8, 2009, 8:01:03 PM8/8/09
to vim_mac
Hi,
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.

björn

unread,
Aug 8, 2009, 8:46:27 PM8/8/09
to vim...@googlegroups.com
2009/8/9 caruso_g:

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

Tony Mechelynck

unread,
Aug 18, 2009, 12:03:13 AM8/18/09
to vim_mac
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"

caruso_g

unread,
Aug 18, 2009, 10:21:35 AM8/18/09
to vim_mac
Tony,
thanks a lot for your reply.
I understand it is not strictly a MacVim question, but I am trying to
use them in MacVim and I would like to use MacVim (instead of TextMate
btw) on my Mac and not… Vim.
Once again thanks a lot for you great answer, it helped me a lot.

On Aug 18, 6:03 am, Tony Mechelynck <antoine.mechely...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages