How To Install vim-fugitive on CentOS 7
Introduction
In this tutorial we learn how to install vim-fugitive
on CentOS 7.
What is vim-fugitive
fugitive.vim may very well be the best Git wrapper of all time. Check out these features View any blob, tree, commit, or tag in the repository with (and and write to it to stage the changes. Use staged version of the file side by side with the working tree version and use Vim’s diff handling capabilities to stage a subset of the file’s changes. Bring up the output of git-status with add/reset a file’s changes, or
p
to add/reset –patch. And guess what output. Press enter on a line to reblame the file as it stood in that commit, oro
to open that commit in a split. buffer. deletes the buffer. Use git-grep, skipping over that which is not tracked in the repository. quickfix list so you can iterate over them and watch the file evolve! the buffer rather than the filename. This means you can useu
to undo it and you never get any warnings about the file changing outside Vim. versions of a file, making it like git-add when called from a work tree file and like git-checkout when called from the index or a blob in history. Add an indicator with the current branch in (surprise!) your statusline. Oh, and of course there’s
We can use yum
or dnf
to install vim-fugitive
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install vim-fugitive.
Install vim-fugitive on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install vim-fugitive
using yum
by running the following command:
Install vim-fugitive on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install vim-fugitive
using dnf
by running the following command:
How To Uninstall vim-fugitive on CentOS 7
To uninstall only the vim-fugitive
package we can use the following command:
References
Summary
In this tutorial we learn how to install vim-fugitive
on CentOS 7 using yum
and dnf
.