I'm trying to understand how the
packages feature in Vim 8 works. The documentation suggests doing the following:
% mkdir -p ~/.vim/pack/foo % cd ~/.vim/pack/foo % unzip /tmp/foopack.zip The directory name "foo" is arbitrary, you can pick anything you like.
In this example, what is the point of the
I plan to use the
packages feature in much the same way that I used
pathogen. For my purposes, I can install plugins like this:
mkdir -p ~/.vim/pack/bundle/opt mkdir -p ~/.vim/pack/bundle/start cd ~/.vim/pack/bundle/start git clone email@example.com:tpope/vim-unimpaired.git git clone firstname.lastname@example.org:tpope/vim-fugitive.git git clone ...etc...
Following the convention in
pathogen, I've used the name
bundle for the directory. I can then install all of my plugins into the
~/.vim/pack/bundle/start directory. If for some reason I want to install a plugin that I use only occasionally, I can put it in the
Is there anything to be gained from creating a sibling to the
bundle directory? It feels to me like this level in the directory tree is unnecessary, but I'm assuming that it's there for some reason.