Skip to content

darthfork/git-blame.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Blame Vim Plugin

Git Blame is a Vim plugin that integrates git blame functionality directly into Vim, allowing you to see who last modified each line in the current file.

Features

  • Displays git blame information for the current line in a Vim buffer.

Usage

Once installed, you can use the :GitBlame command to display the git blame information for the current line in the buffer.

:GitBlame

Recommended usage

Map the function to a shortcut in your vimrc for quick peak at the git blame

vim:

nmap <silent><Leader>g :GitBlame<CR>

neovim:

vim.api.nvim_set_keymap('n', '<Leader>g', ':GitBlame<CR>', { silent = true })

Preview

Preview

Installation

Using Vundle

  1. Add the following line to your .vimrc:

    Plugin 'darthfork/git-blame.vim'
  2. Install the plugin by running:

    :PluginInstall

Using Pathogen

  1. Clone the repository into your .vim/bundle directory:

    git clone https://github.com/darthfork/git-blame.vim ~/.vim/bundle/git-blame.vim

Using vim-plug

  1. Add the following line to your .vimrc:

    Plug 'darthfork/git-blame.vim'
  2. Install the plugin by running:

    :PlugInstall

Manual Installation

  1. Clone the repository:

    git clone https://github.com/darthfork/git-blame.vim ~/.vim/pack/plugins/start/git-blame.vim
  2. Restart Vim.

About

Git Blame plugin for vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published