189
GitHub - junegunn/gv.vim: A git commit browser
source link: https://github.com/junegunn/gv.vim
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
gv.vim
A git commit browser.
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
.
- You can pass
: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 ito
or<cr>
on commits to display the diff in the rangeO
opens a new tab insteadgb
for:GBrowse
]]
and[[
to move between commits.
to start command-line with:Git [CURSOR] SHA
à la fugitiveq
orgq
to close
Customization
¯\_(ツ)_/¯
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK