Skip to content

junegunn/gv.vim

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

…ent file" in normal mode (#113)

:GV? currently does not work as described in the README - in order to "fill the location list with the revisions of the current file" in normal mode, we must use 0Gllog, not Gllog.
320cc8c

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
October 20, 2021 08:37
October 16, 2020 15:52

gv.vim

A git commit browser.

gv

gitv is nice. But I needed a faster, and possibly simpler alternative that I can use with a project with thousands of commits.

Installation

Requires fugitive.

Using vim-plug:

Plug 'tpope/vim-fugitive'
Plug 'junegunn/gv.vim'

Usage

Commands

  • :GV to open commit browser
    • You can pass git log options to the command, e.g. :GV -S foobar -- plugins.
  • :GV! will only list commits that affected the current file
  • :GV? fills the location list with the revisions of the current file

:GV or :GV? can be used in visual mode to track the changes in the selected lines.

Mappings

  • o or <cr> on a commit to display the content of it
  • o or <cr> on commits to display the diff in the range
  • O opens a new tab instead
  • gb for :GBrowse
  • ]] and [[ to move between commits
  • . to start command-line with :Git [CURSOR] SHA à la fugitive
  • q or gq to close

Customization

¯\_(ツ)_/¯

About

A git commit browser in Vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published