50
22
I had a real difficulty installing vim plugins on mac. I know for a plugin to be installed it has to be seen by runtimepath. According to vim docs, this is
Macintosh: "$VIM:vimfiles,
$VIMRUNTIME,
$VIM:vimfiles:after"
First off, what does $VIM:vimfiles mean?? It is certainly not $VIM/vimfiles, as (~/.vim/vimfiles) does not work. So my options are
1) put my plugin in /usr/share/vim/vim73 (my $VIMRUNTIME, which i know to be BAD)
2) find a way to make vim look at my home directory when including plugins. I have putting my plugin in:
~/.vim/plugin.vim
~/.vim/vimfiles/plugin.vim
~/.vim/plugin/plugin.vim
All to no avail. Can somebody help me out here? Thanks!
I recommend vim-plug. And for the record, in case you want to install a plugin globally for all users, see my answer here stackoverflow plugins globally
– Dr Beco – 2017-07-10T19:31:46.4931That runtimepath, as described in the docs, doesn't seem right for a Mac running OS X. I wonder if it refers only to the Mac OS that preceded OS X. Use this command to see what it really is on your machine:
:set rtp?
. My guess is that the runtimepath on your Mac is set as it would be for a Unix system, and that you should put your plugins in ~/.vim/plugin, not ~/.vim/vimfiles. – garyjohn – 2012-03-25T22:33:15.820