Skip to content

Latest commit

 

History

History
84 lines (51 loc) · 1.6 KB

README.md

File metadata and controls

84 lines (51 loc) · 1.6 KB

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.