From f09a6fa2d40cc4cd2efd2842754470fd8eadbff0 Mon Sep 17 00:00:00 2001 From: David Briscoe Date: Sat, 28 Jul 2018 07:25:27 -0700 Subject: [PATCH] Add help file Content from Readme. Style based on easy-align and vader's help file format. --- doc/gv.txt | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 doc/gv.txt diff --git a/doc/gv.txt b/doc/gv.txt new file mode 100644 index 0000000..facac4c --- /dev/null +++ b/doc/gv.txt @@ -0,0 +1,59 @@ +gv.txt gv + +GV.VIM *gv-vim* *git-gv* +============================================================================== + +A git commit browser usable on projects with thousands of commits. + + + *gv-1* +INSTALLATION *gv-installation* +============================================================================== + +Use your favorite plugin manager. + + - {vim-plug}{1} + + 1. Plug 'tpope/vim-fugitive' + 2. Plug 'junegunn/gv.vim' + + {1} https://github.com/junegunn/vim-plug + + + *gv-2* +COMMANDS *gv-commands* +============================================================================== + + *:GV* +:GV to open commit browser +You can pass git log options to the command, e.g. :GV -S foobar. + + *:GV!* +:GV! will only list commits that affected the current file + + *:GV?* +:GV? fills the location list with the revisions of the current file + + *:v_GV* +:GV or :GV? can be used in visual mode to track the changes in the selected +lines. + + *gv-3* +MAPPINGS *gv-mappings* +============================================================================== + + -----------------------+---------------+--------------------------------------------------------- + Mapping | Mode | Description ~ + -----------------------+---------------+--------------------------------------------------------- + o or on a commit | normal | Display the content of commit + o or on commits | visual | Display the diff in the range + O | normal/visual | Like `o`, but opens a new tab instead + gb | normal | |:Gbrowse| + ]] and [[ | normal/visual | Move between commits + . | normal | Begin `:Git [CURSOR] SHA` à la fugitive + q | normal | Close + -----------------------+---------------+--------------------------------------------------------- + + +============================================================================== +vim:tw=78:sw=2:ts=2:ft=help:norl:nowrap: