Choosing a Vim Plugin Manager
vim-plug
Vim-plug [6] is a minimalist plugin manager, designed to be quickly installed and edited (Figure 4). To install, run the command:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
![](/var/linux_magazin/storage/images/issues/2020/230/command-line-vim-plugin-managers/figure-4/760062-1-eng-US/Figure-4_large.png)
To automatically update plug.vim
, place Listing 2 in .vimrc
before the line that starts with call plug#begin()
.
Listing 2
Code to Auto Update plug.vim
if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif
To install new plugins, below the line that starts with call plug#begin
, add one plugin per line in the format Plug <PATH>
, much like in dein.vim. To borrow the example from the vim-plug tutorial, if your plugin source is GitHub, enter:
call plug#begin('~/.vim/plugged') " Declare the list of plugins. Plug 'tpope/vim-sensible' Plug 'junegunn/seoul256.vim' "
Note the double quotation marks around the list.
When the list is complete, restart Vim and run :PlugUpdate
to complete the process. You can either review the changes by pressing D in the window or by running :PlugDiff
. Should another plugin no longer work or interfere with another, you can see the latest changes with :PlugDiff
. Scroll to the plugin's line and roll back the changes by scrolling to its entry and pressing the X key. To remove a plugin, delete its .vimrc
entry and run :PlugClean
.
Vim-plug is a popular manager, because it offers many of the same features as more complex managers, but with an elegant simplicity. If I was recommending a single manager for all user levels, it would be vim-plug.
vim-addon-manager
Properly speaking, vim-addon-manager [7] is not a Vim plugin. Instead, it is an ordinary Linux package that is installed with a second package that contains over 20 classic Vim add-ons. Each of these add-ons has a status of installed, removed, disabled, broken, or unavailable. Using the command structure
vim-addon-manager install ADD-ON
users can install multiple add-ons, using a space-separated list (Figure 5).
Vim-addon-manager is useful as an introduction to Vim extensions. In addition, it places extension management into general package management, simplifying system administration. Its main drawback is the limited selection. However, the selection can be extended by placing other add-ons in /usr/share/vim/addons
– a matter of file management rather than editing configuration files.
Volt
First released in 2015, Volt [8] uses the go-git library in its operations, a basic implementation of git
's "porcelain" or high-level, user-friendly options, operating partly outside of Vim. It can be installed with:
go get github.com/vim-volt/volt
Then, to make Volt functional, set the environment variables by adding to .vimrc
:
$HOME/volt/rc/default/vimrc.vim (installed to: $HOME/.vim/vimrc)
Another profile can replace default
, using the online instructions [9]. If necessary, change the path to match your preference (Figure 6).
Plugins can be installed using the command:
volt get https://github.com/CREATOR/PLUGIN
The command can be shortened to start with GitHub or even omit it, so long as GitHub is the source. The full command has the advantage of using what you copy and paste.
All plugins can be updated with:
volt get -l -u
Individual plugins can be updated with:
volt get -u /CREATOR/PLUGIN
Similarly, Volt itself can be updated with the command volt self-upgrade
.
Volt is ideal for users familiar with git
, or those who, while familiar with the command line, are only moderately comfortable with Vim and only occasionally use it.
« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.