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 foo
directory?
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 protected]:tpope/vim-unimpaired.git
git clone [email protected]: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 ~/.vim/pack/bundle/opt
directory.
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.
bundle
directory, then I'd prefer that level of the directory tree to not exist at all. "What shall I call this directory?" is not a freedom that I want - it's just another cause for decision fatigue!