Disclaimer This answer contains comments that are based on my experience and on the opinion that I got with the time, it might not be universal. I wrote this answer with keeping in mind the experience of a new Vim user.
EDIT The package vim-addon-manager installed by OP is a command-line plugin manager that you run outside of Vim. It was created to install plugin packaged as debian packages (See this question about its creation). It is pretty useful to solve some specific problems but it is less flexible than others plugin managers which directly fetch plugin from github or other sources.
I think that to let a new comer achieve the goal stated by the question the package is not the easiest tool to use, that is why I made this answer detailing an easy way to install new plugins.
Now if I understood correctly the documentation of the package and OP really wants to use it:
- To install a new plugin with vim-addon-manager, the user should use
vim-addons install <plugin> with
<plugin> being one of the entries shown by the command
- As the nibble requested by OP is not in the list posted in the question, it will be necessary to package the plugin as a debian package and I think the instructions to do so are beyond the scope of this site.
I have tested several plugin managers but never vim-addon-manager. The main reason is because the minimum configuration that you need to make it work seems a little bit too long and messy for me and thus not adapted for a new comer to Vim. Also several opinions in this reddit thread made me think that it wasn't for me.
I think that if you're a new user who just want to easily and quickly get ready to discover the power of Vim plugins, you should choose another plugin manager and I would strongly recommend Vim-plug for its ease of use and its power. (Of course one can always argue for another plugin manager, I choose to use this one in this answer to provide a minimal and easy set of instructions to get ready to use a plugin)
As you was mentioning
apt-get I assume that you are on a Unix system, so this installation process is pretty straight-forward:
First in your favorite terminal use this command:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
It will automatically download the plugin manager and put it in the right place so you'll be able to use it right after the download.
Once the download is over, simply add theses lines in your
.vimrc (If you don't have a
.vimrc file you can simply create it:
In this file you'll need to add the following lines to be able to start adding new plugins:
" You'll replace this line with your plugin installations
You're now ready to install new plugins. To do so, find a github repo of your plugin: if you wanted a nibble you can look at this repo. To install a plugin from github you'll have to add a line like the following one in your
.vimrc between the lines
call plug#begin('~/.vim/plugged') and
username/repo-name are the end of the github url and can also be found on the top of the github webpage of the repo)
For the nibble I linked you'll have to write 2 lines because the plugin has a dependecy:
Remember to save your
.vimrc with its new lines with
:w (Press on : to enter the command mode, write
w and validate with enter) and to source it so Vim is aware that you added new lines:
Now comes the final step: tell to Vim-plug to fetch the source files of the plugin and install it. To do so in Vim simply use the command
A new window with a buffer will appear showing you the progress of the install process. Once it's done you can close this buffer with
:bd and you're ready to use your plugins.
You can then use the command
:Nibble and start enjoying your game.
As I said Vim-plug is a pretty easy to use and still powerful plugin manager, use it for a while learn how to use it and then when you'll be comfortable enough with it, give another try to vim-addon-manager if you really feel like it.