File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ It asks if users want to apply or cancel changes when |:quit| command is
84
84
invoked. Answer "yes" to apply changes and others to cancel changes. Or use
85
85
:Accept or :Cancel buffer local command to directly apply or cancel changes.
86
86
87
+ Note that this :Accept and :Cancel command are aliased to | :wq | and | :cq |
88
+ respectively for "gitcommit" and "gitrebase" filetype buffers so that users
89
+ can use the same keybindings even they invoke "git commit" or "git rebase -i"
90
+ outside of Vim.
91
+
87
92
Use | g:gin_proxy_apply_without_confirm | to apply changes without asking.
88
93
89
94
Use | g:gin_proxy_editor_opener | to specify the opener command to open the
@@ -92,6 +97,9 @@ buffer.
92
97
Use | g:gin_proxy_disable_askpass | and/or | g:gin_proxy_disable_editor | to
93
98
disable this proxy feature.
94
99
100
+ Use | g:gin_proxy_disable_accept_and_cancel_aliases | to disable the accept and
101
+ cancel aliases in "gitcommit" and "gitrebase" filetype buffers.
102
+
95
103
96
104
=============================================================================
97
105
INTERFACE *gin-interface*
@@ -641,6 +649,12 @@ VARIABLES *gin-variables*
641
649
642
650
Default: 0
643
651
652
+ *g:gin_proxy_disable_accept_and_cancel_aliases*
653
+ Disable :Accept and :Cancel aliases in "gitcommit" and "gitrebase"
654
+ filetype buffers.
655
+
656
+ Default: 0
657
+
644
658
*g:gin_proxy_editor_opener*
645
659
Opener command (e.g. "split", "vsplit", "tabedit") to open a buffer
646
660
on proxy editors.
Original file line number Diff line number Diff line change
1
+ if get (g: , ' gin_proxy_disable_accept_and_cancel_aliases' , 0 )
2
+ finish
3
+ endif
4
+
5
+ if ! exists (' :Accept' )
6
+ command ! Accept wq
7
+ endif
8
+ if ! exists (' :Cancel' )
9
+ command ! Cancel cq
10
+ endif
Original file line number Diff line number Diff line change
1
+ if get (g: , ' gin_proxy_disable_accept_and_cancel_aliases' , 0 )
2
+ finish
3
+ endif
4
+
5
+ if ! exists (' :Accept' )
6
+ command ! Accept wq
7
+ endif
8
+ if ! exists (' :Cancel' )
9
+ command ! Cancel cq
10
+ endif
You can’t perform that action at this time.
0 commit comments