mirror of
https://github.com/amix/vimrc
synced 2025-07-12 06:05:01 +08:00
Update vim-fugitive.
This commit is contained in:
@ -70,8 +70,8 @@ that are part of Git repositories).
|
||||
O jump to patch or blob in new tab
|
||||
p jump to patch or blob in preview window
|
||||
- reblame at commit
|
||||
~ reblame at [count]th first grandparent
|
||||
P reblame at [count]th parent (like HEAD^[count])
|
||||
~ reblame at commit~[count]
|
||||
P reblame at commit^[count]
|
||||
|
||||
*g:fugitive_dynamic_colors*
|
||||
In the GUI or a 256 color terminal, commit hashes will
|
||||
@ -98,6 +98,12 @@ that are part of Git repositories).
|
||||
*:Git_mergetool*
|
||||
:Git mergetool [args] Like |:Git_difftool|, but target merge conflicts.
|
||||
|
||||
Wrappers for Vim built-ins ~
|
||||
|
||||
These all directly map onto a built-in Vim command, and generally have names
|
||||
that prepend "G" to the command they are wrapping. For example, :Ggrep is G
|
||||
plus |:grep|.
|
||||
|
||||
*:Ggrep* *:Git_grep*
|
||||
:Ggrep[!] [args] An approximation of |:grep|[!] with git-grep as
|
||||
:Git[!] grep -O [args] 'grepprg'.
|
||||
@ -113,11 +119,12 @@ that are part of Git repositories).
|
||||
*:Gclog*
|
||||
:Gclog[!] [args] Use git-log [args] to load the commit history into the
|
||||
|quickfix| list. Jumps to the first commit unless [!]
|
||||
is given.
|
||||
is given. This command wraps |:cfile|.
|
||||
|
||||
The quickfix list can be awkward for many use cases
|
||||
and exhibits extremely poor performance with larger
|
||||
data sets. Consider using |:Git| log instead.
|
||||
data sets. Consider using |:Git| log --oneline
|
||||
instead.
|
||||
|
||||
:{range}Gclog[!] [args] Use git-log -L to load previous revisions of the given
|
||||
range of the current file into the |quickfix| list.
|
||||
@ -213,6 +220,13 @@ that are part of Git repositories).
|
||||
'diffopt'. The split will still be vertical if
|
||||
combined with |:vertical|.
|
||||
|
||||
Other commands ~
|
||||
|
||||
These do not directly correspond to any built-in Vim command, and have a
|
||||
capital letter after the "G" to convey this. For example, the file move
|
||||
operation has nothing to do with the |:move| built-in, so it is named :GMove,
|
||||
not :Gmove.
|
||||
|
||||
*:GMove*
|
||||
:GMove {destination} Wrapper around git-mv that renames the buffer
|
||||
afterward. Add a ! to pass -f.
|
||||
@ -227,8 +241,9 @@ that are part of Git repositories).
|
||||
passed. Add a ! to pass -f and forcefully discard the
|
||||
buffer.
|
||||
|
||||
*:GRemove*
|
||||
*:GRemove* *:GUnlink*
|
||||
:GRemove Like |:GDelete|, but keep the (now empty) buffer around.
|
||||
:GUnlink
|
||||
|
||||
*:GBrowse*
|
||||
:GBrowse Open the current file, blob, tree, commit, or tag
|
||||
|
Reference in New Issue
Block a user