Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junegunn/gv.vim
A git commit browser in Vim
https://github.com/junegunn/gv.vim
Last synced: about 2 months ago
JSON representation
A git commit browser in Vim
- Host: GitHub
- URL: https://github.com/junegunn/gv.vim
- Owner: junegunn
- Created: 2016-01-14T17:15:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-10T10:30:42.000Z (10 months ago)
- Last Synced: 2024-06-18T13:49:12.077Z (3 months ago)
- Language: Vim Script
- Homepage:
- Size: 68.4 KB
- Stars: 1,314
- Watchers: 15
- Forks: 54
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
gv.vim
======A git commit browser.
![gv](https://cloud.githubusercontent.com/assets/700826/12355378/8bbf0834-bbdf-11e5-9389-1aba7cd1fec1.png)
[gitv](https://github.com/gregsexton/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](https://github.com/junegunn/vim-plug):
```vim
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 `` on a commit to display the content of it
- `o` or `` 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 closeCustomization
-------------`¯\_(ツ)_/¯`