How to install plugins in MacVim

711 views
Skip to first unread message

caruso_g

unread,
Aug 9, 2009, 2:53:00 AM8/9/09
to vim_use
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?
Thanks 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.

Simon Ruderich

unread,
Aug 9, 2009, 12:00:42 PM8/9/09
to vim...@googlegroups.com
On Sat, Aug 08, 2009 at 11:53:00PM -0700, caruso_g wrote:
>
> 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.

Did you quit MacVim and restart it? That's necessary if you have
enabled the quickstart option so the new files are picked up.

> 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?

Was it doc/tags? You don't need to copy this file. Just run
:helptags ~/.vim/doc after installing new plugins with
documentation then it's automatically updated.

> Thanks 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.

That's normally how it works. Most scripts also describe how they
can be installed.

Simon
--
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

signature.asc

bill lam

unread,
Aug 9, 2009, 12:18:47 PM8/9/09
to vim...@googlegroups.com

There are several sub-directories inside ~/.vim, if they do not exits,
mkdir them manually.

after
autoload
colors
compiler
doc
ftplugin
indent
keymap
plugin
syntax

plugin files should be copies to the `plugin' folder and similarly
other types of files.

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

caruso_g

unread,
Aug 9, 2009, 12:45:58 PM8/9/09
to vim_use
Hi Simon,
thanks to much for your answer.

On 9 Ago, 18:00, Simon Ruderich <si...@ruderich.org> wrote:
> On Sat, Aug 08, 2009 at 11:53:00PM -0700, caruso_g wrote:
>
> > 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.
>
> Did you quit MacVim and restart it? That's necessary if you have
> enabled the quickstart option so the new files are picked up.

Yes, restarted. :/

> > 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?
>
> Was it doc/tags? You don't need to copy this file. Just run
> :helptags ~/.vim/doc after installing new plugins with
> documentation then it's automatically updated.

Ok, I want to show you a specific scenario I faced.
I downloaded the Textile plugin, http://www.vim.org/scripts/script.php?script_id=164
, then I unpacked it into ~/.vim/ so that I have a situation like:

/doc/
tags
textile.txt
/ftplugin/
textile.vim
html-macros.vim
/plugin/
textile.vim
/syntax/
textile.vim

Now, restarting, MacVim, and creating a .textile file I can see the
syntax higlighted, but with :helptags ~/.vim/doc it doesn't happen
anything.
More, If I want to install another plugin there will be another tags
file that, I suppose, I have to drag and drop into the doc folder… how
can do it without override it?
But, apart that, I am still not able to use it. :/

Thanks again for your help.

> > Thanks 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.
>
> That's normally how it works. Most scripts also describe how they
> can be installed.
>
> Simon
> --
> + privacy is necessary
> + usinghttp://gnupg.org
> + public key id: 0x92FEFDB7E44C32F9
>
>  signature.asc
> < 1KVisualizzaScarica

Gregory Margo

unread,
Aug 9, 2009, 3:04:28 PM8/9/09
to vim...@googlegroups.com
On Sat, Aug 08, 2009 at 11:53:00PM -0700, caruso_g wrote:
> 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.

What is your 'runtimepath' option set to?
Does it include the $HOME/.vim directory?

--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Gregory H. Margo
gmargo at yahoo/com, gmail/com, pacbell/net; greg at margofamily/org

Simon Ruderich

unread,
Aug 9, 2009, 3:30:53 PM8/9/09
to vim...@googlegroups.com
On Sun, Aug 09, 2009 at 09:45:58AM -0700, caruso_g wrote:
>
> Ok, I want to show you a specific scenario I faced.
> I downloaded the Textile plugin,
> http://www.vim.org/scripts/script.php?script_id=164

The plugin with this link isn't a Textile plugin but a HTML
plugin.

> , then I unpacked it into ~/.vim/ so that I have a situation like:
>
> /doc/
> tags
> textile.txt
> /ftplugin/
> textile.vim
> html-macros.vim
> /plugin/
> textile.vim
> /syntax/
> textile.vim

Run :scriptnames to check if the script was loaded.

> Now, restarting, MacVim, and creating a .textile file I can see the
> syntax higlighted, but with :helptags ~/.vim/doc it doesn't happen
> anything.

That should be fine. :helptags doesn't cause any output. It
updates doc/tags so it contains all tags of the files in doc/. So
that the :help completion and tag jumping works.

See :help helptags for more information.

> More, If I want to install another plugin there will be another tags
> file that, I suppose, I have to drag and drop into the doc folder… how
> can do it without override it?

Just ignore the tags file (or you could overwrite the existing
one) and run :helptags after installing the plugin and its files.

> But, apart that, I am still not able to use it. :/
>
> Thanks again for your help.

Simon


--
+ privacy is necessary

+ using http://gnupg.org

signature.asc

Charles E Campbell Jr

unread,
Aug 9, 2009, 11:10:24 PM8/9/09
to vim...@googlegroups.com
caruso_g wrote:
> 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.
>
I confess -- I'm not a Mac user. However, does your .vimrc happen to
have the following two lines in it:

set nocp
filetype plugin on

(you may want filetype plugin indent on instead)

Regards,
Chip Campbell

Reply all
Reply to author
Forward
0 new messages