Vim plugins not working in OSX 10.7

0

1

I had downloaded snipmate from http://www.vim.org/scripts/script.php?script_id=2540... I extracted the zip file and copied it to folder /usr/share/vim/vim73/

Before this plugin,
i tried to install NerdTree then also copying the whole extracted zip folder it into vim73 directory didn't help much but
then i copied "NerdTree.vim" file to the vim73 folder directly.. then it started working...

I tried the same for snipmate but it didn't work out. Can anyone tell me why this behaviour and plus how do go about working out this plugin in vim?

mabus44

Posted 2012-05-24T14:36:45.490

Reputation: 65

2How about you follow the installation instructions on the site and install to $HOME/.vim? – Daniel Beck – 2012-05-24T18:11:40.040

I would recommed using pathogen to install Vim plugins. – RanRag – 2012-08-21T19:30:38.300

1@RanRag Yo! RanRag you rock! – mabus44 – 2012-08-22T09:14:49.503

@mabus44: Really you think by suggesting pathogen I rock than what's your say on Tim Pope :) – RanRag – 2012-08-22T09:31:32.040

Answers

1

Don't ever touch these folders and files.

Plugins are to be installed in ~/.vim (you must create this folder yourself) and settings are to be added to ~/.vimrc (you must create this file yourself).

And, next time you want to try a new plugin, read the documentation before you click on the download link.

romainl

Posted 2012-05-24T14:36:45.490

Reputation: 19 227

I tried creating the folder .vim and the settings .vimrc in my "~/" folder but the changes done to the .vimrc file didn't show any kind of effect... thats why i got to know about this location /usr/share/vim where changes done vimrc were effective thats why i used this location for the plugins... Is there a way in which I can command vim to check the .vim folder and .vimrc file before starting? – mabus44 – 2012-05-25T05:04:24.777

You don't have to tell Vim to use ~/.vimrc and ~/.vim/ because that's the default place for your settings and plugins. It has been like that for ever and the only way I know for Vim to start without using these is to explicitely tell it to do so by passing it a bunch of arguments on the command line. Just to be sure that we are on the same page, could you confirm that "your ~/ folder" is your home folder? ~ is a shortcut for /Users/username/ so you should have /Users/username/.vimrc and /Users/username/.vim/. – romainl – 2012-05-25T06:04:37.517

"~/" is my home folder.. When i copied the snipmate contents of the extracted folder to ".vim" then the following error was shown when i tried to open a file "Warning in snipMate.vim: Snippet c) is already defined. See :h multi_snip for help on snippets with multiple matches. Warning in snipMate.vim: Snippet date is already defined. See :h multi_snip for help on snippets with multiple matches." Hence again the plugin is still not working.... Can you help to understand whats happening and how can i solve it? – mabus44 – 2012-05-25T07:14:41.803

It means that SnipMate (or, at the very least its snippets) is installed in two different places and thus loaded twice. Get rid of one (the one that is located in the wrong place). – romainl – 2012-05-25T08:42:05.143

That's cool. Don't hesitate to click on the checkmark ;-) – romainl – 2012-05-26T19:49:03.070