How To Install vim-fugitive on CentOS 7

In this tutorial we learn how to install vim-fugitive on CentOS 7. vim-fugitive is A Git wrapper so awesome, it should be illegal

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 use u 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.

sudo yum makecache

After updating yum database, We can install vim-fugitive using yum by running the following command:

sudo yum -y install vim-fugitive

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.

sudo dnf makecache

After updating yum database, We can install vim-fugitive using dnf by running the following command:

sudo dnf -y install vim-fugitive

How To Uninstall vim-fugitive on CentOS 7

To uninstall only the vim-fugitive package we can use the following command:

sudo dnf remove vim-fugitive

References

Summary

In this tutorial we learn how to install vim-fugitive on CentOS 7 using yum and dnf.