sponsor Vim development Vim logo Vim Book Ad

GitBlame : plugin provides minimal command set for working with git

 script karma  Rating -1/1, Downloaded by 373  Comments, bugs, improvements  Vim wiki

created by
Michael Moser
 
script type
utility
 
description
This project is a minimal vim plugin for working with git; with a focus on git blame, git grep, git log --graph, git ls-files, git diff commands, allows to check out local and remote branches, view git status, stage and unstage files. It's not too complicated, so there is a chance that it will work for your installation too.

see https://github.com/MoserMichael/gitblame

This plugin is currently not supporting merging/rebasing, as I am used to doing these from the command line. You have got a different plugin, vim fugitive, if you need to merge or rebase from within vim.

Link to presentation on this plugin on youtube: https://www.youtube.com/watch?v=7ug8cWKAuO8

 
install details
with git:

mkdir -p ~/.vim/pack/vendor/start/gitblame; git clone --depth 1 https://github.com/MoserMichael/gitblame ~/.vim/pack/vendor/start/gitblame

otherwise unzip the downloaded file into ~/.vim/plugin/gitblame, like this:

mkdir -p ~/.vim/pack/vendor/start/gitblame; unzip gitblame.zip -d  ~/.vim/pack/vendor/start/gitblame

To generate the help text run the following vim command:

:helptags ALL

After that you can view the help file of plugin via vim command:

:help gitblame

You can also view the documentation online: https://raw.githubusercontent.com/MoserMichael/gitblame/master/doc/gitblame.txt
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
gitblame.zip 0.8.6 2022-05-04 7.0 Michael Moser     change gitdiff

    ignore numbers in status following R
    gitdiff between two commit, fix wrong command to show file at
    from_commit
gitblame.zip 0.8.5 2021-11-07 7.0 Michael Moser fix renaming of buffers in git diff
ip used for rating: 18.191.186.72

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github