How To Install vim-gitgutter on AlmaLinux 8
Introduction
In this tutorial we learn how to install vim-gitgutter
on AlmaLinux 8.
What is vim-gitgutter
A Vim plugin which shows a git diff in the ‘gutter’ (sign column). It shows which lines have been added, modified, or removed. You can also preview, stage, and undo individual hunks; and stage partial hunks. The plugin also provides a hunk text object. The signs are always up to date and the plugin never saves your buffer.
We can use yum
or dnf
to install vim-gitgutter
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install vim-gitgutter.
Install vim-gitgutter on AlmaLinux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install vim-gitgutter
using dnf
by running the following command:
sudo dnf -y install vim-gitgutter
Install vim-gitgutter on AlmaLinux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install vim-gitgutter
using yum
by running the following command:
sudo yum -y install vim-gitgutter
How To Uninstall vim-gitgutter on AlmaLinux 8
To uninstall only the vim-gitgutter
package we can use the following command:
sudo dnf remove vim-gitgutter
References
Summary
In this tutorial we learn how to install vim-gitgutter
on AlmaLinux 8 using yum and dnf.