blob: 5fba80759f948f17148c964fa5112f5a786f498c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
  | 
*git-vim.txt*  Git Bindings for Vim
==============================================================================
CONTENTS                                                    *git-vim-contents*
  1. Introduction.............................|git-vim|
  2. Commands.................................|git-vim-commands|
  3. Keymaps..................................|git-vim-keymaps|
  4. License..................................|git-vim-license|
==============================================================================
1. Introduction                                                      *git-vim*
Git-vim provides:
* Plugin files for calling git functions from inside Vim
* Syntax files for git displays
==============================================================================
2. Commands                                                 *git-vim-commands*
:GitAdd <file>
    git-add <file> or current file if not specified.
:GitCommit <args>
    git-commit.
:GitStatus
    Show git-status of current file or repository.
:GitLog
    Show git-log of current file or repository.
:GitCheckout <args>
    git-checkout. Completes git commits.
:GitDiff <args>
    git-diff. Completes git commits.
:GitPull <args>
    git-pull.
:GitPullRebase
    git-pull —rebase.
:GitPush <args>
    git-push. Defaults to +git push origin <current-branch>+.
:GitCatFile <args>
    git-cat-file.
:Git <args>
    Does any git command.
:GitVimDiffMerge
    Experimental. Call this command on unmerged file to enter vimdiff mode.
:GitVimDiffMergeDone
    Call this command after merging.
==============================================================================
3. Keymaps                                                   *git-vim-keymaps*
<Leader>gd
    :GitDiff
<Leader>gD
    :GitDiff —cached
<Leader>gs
    :GitStatus
<Leader>gl
    :GitLog
<Leader>ga
    :GitAdd
<Leader>gA
    :GitAdd <cfile>
<Leader>gc
    :GitCommit
In the git-status buffer:
<Enter>
    :GitAdd <cfile>
==============================================================================
4. License                                                   *git-vim-license*
The MIT License
 vim:tw=78:ts=8:ft=help
  |