1- *gitsupport.txt* Git Support June 28 2014
1+ *gitsupport.txt* Git Support Aug 21 2014
22
33Git Support *git-support* *gitsupport*
44
5- Plug-in version 0.9.2pre
5+ Plug-in version 0.9.2
66 for Vim version 7.0 and above
77 Wolfgang Mehner <wolfgang-mehner at web.de>
88
@@ -111,6 +111,7 @@ run the commands in every subdirectory of the project.
111111 | :GitStash | [<args> ] (run) git stash <args>
112112 | :GitStash | list [<args> ] (buf) git stash list <args>
113113 | :GitStash | show [<args> ] (buf) git stash show <args>
114+ | :GitSlist | (buf) git stash list
114115 | :GitStatus | [<path> ] (buf) git status
115116 | :GitTag | (buf) git tag
116117 | :GitTag | <args> (run) git tag <args>
@@ -136,6 +137,12 @@ When called without arguments, the commands GitBranch and GitRemote open a
136137buffer, otherwise they run the respective Git command with the given
137138arguments.
138139
140+ Names of Git objects can be completed while on the Vim command-line, similar
141+ to the way words can be completed in buffers using CTRL-P (see | i_CTRL-P | ).
142+ The names of branches, commands, remotes and tags can be completed that way.
143+ This feature has to be enabled by hand, see | gitsupport-cmds-cmd-line | for
144+ details.
145+
139146------------------------------------------------------------------------------
1401472.1 MENU *gitsupport-overview-menu*
141148------------------------------------------------------------------------------
@@ -280,20 +287,20 @@ The second version executes "git branch ...".
280287 *:GitCheckout*
281288 :GitCheckout [<args>] ~
282289
283- Executes "git checkout ...". If no arguments are given, checks out the current
284- file.
290+ Executes "git checkout ...".
285291
286292Examples:
287293
288294Check out the file in the current buffer: >
289- :GitCheckout
290- Is equivalent to: >
291- git checkout -- <currentfile>
295+ :GitCheckout -- %
292296 (Might require running ":e" to update the buffer itself.)
293297
294298Check out the branch "master": >
295299 :GitCheckout master
296300
301+ Settings:
302+ - | g:Git_CheckoutExpandEmpty |
303+
297304------------------------------------------------------------------------------
298305 *:GitCommit* *:GitCommitFile* *:GitCommitMsg*
299306 :GitCommit [<args>] ~
@@ -520,15 +527,15 @@ Is equivalent to: >
520527 *:GitReset*
521528 :GitReset [<args>] ~
522529
523- Executes "git reset ...". If no arguments are given, resets the current
524- buffer.
530+ Executes "git reset ...".
525531
526532Example:
527533
528534Reset the current file: >
529- :GitReset
530- Is equivalent to: >
531- git reset -- <currentfile>
535+ :GitReset -- %
536+
537+ Settings:
538+ - | g:Git_ResetExpandEmpty |
532539
533540------------------------------------------------------------------------------
534541 *:GitShow*
@@ -546,13 +553,15 @@ separate buffer is opened.
546553 ----------------------------------------------------------------------------
547554
548555------------------------------------------------------------------------------
549- *:GitStash*
556+ *:GitStash* *:GitSlist *
550557 :GitStash [<args>] ~
551558 :GitStash list [<args>] ~
552559 :GitStash show [<args>] ~
560+ :GitSlist ~
553561
554562The first version executes "git stash ...". The second and third version open
555- buffers listing the stashes or showing a stash.
563+ buffers listing the stashes or showing a stash. The command ":GitSlist" is a
564+ shorthand for ":GitStash list"
556565
557566The buffer for ":GitStash list" defines the following maps:
558567
@@ -691,17 +700,21 @@ Shows the plug-in settings. The second version is verbose.
691700------------------------------------------------------------------------------
6927013.1 COMMAND-LINE COMPLETION *gitsupport-cmds-cmd-line*
693702------------------------------------------------------------------------------
694- *GitS_CmdLineComplete()*
703+ *g:Git_MapCompleteBranch* *g:Git_MapCompleteCommand*
704+ *g:Git_MapCompleteRemote* *g:Git_MapCompleteTag*
695705The user can configure maps to complete the names of branches, remotes, tags
696706and Git-commands on the command-line. The command-line is set up to complete
697- filenames using "tab". Other elements are completed using the function
698- GitS_CmdLineComplete( <mode> ), which must be used in maps like this:
707+ filenames using "tab". Other elements are completed using special keys, which
708+ may be configured like this:
699709>
700- cnoremap <silent> <c-b> <C-\>eGitS_CmdLineComplete('branch')<CR>
701- cnoremap <silent> <c-s> <C-\>eGitS_CmdLineComplete('command')<CR>
702- cnoremap <silent> <c-r> <C-\>eGitS_CmdLineComplete('remote')<CR>
703- cnoremap <silent> <c-t> <C-\>eGitS_CmdLineComplete('tag')<CR>
710+ let g:Git_MapCompleteBranch = ' <c-b>' " complete branches, CTRL-B
711+ let g:Git_MapCompleteCommand = ' <c-s>' " complete commands, CTRL-S
712+ let g:Git_MapCompleteRemote = ' <c-r>' " complete remotes, CTRL-R
713+ let g:Git_MapCompleteTag = ' <c-t>' " complete tags, CTRL-T
704714<
715+ These maps are not set up by default. Only if one of these variables is set,
716+ then the corresponding map is created.
717+
705718==============================================================================
7067194. SYNTAX HIGHLIGHTING *gitsupport-syntax*
707720==============================================================================
0 commit comments