Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vimagit
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jreybert
vimagit
Commits
dda4b96d
Commit
dda4b96d
authored
9 years ago
by
Izuta Hiroyuki
Browse files
Options
Downloads
Patches
Plain Diff
Add command for close section for commit
parent
10033811
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugin/magit.vim
+9
-0
9 additions, 0 deletions
plugin/magit.vim
with
9 additions
and
0 deletions
plugin/magit.vim
+
9
−
0
View file @
dda4b96d
...
...
@@ -27,6 +27,7 @@ let g:magit_discard_hunk_mapping = get(g:, 'magit_discard_hunk_mapping',
let
g:magit_commit_mapping
=
get
(
g
:,
'magit_commit_mapping'
,
'CC'
)
let
g:magit_commit_amend_mapping
=
get
(
g
:,
'magit_commit_amend_mapping'
,
'CA'
)
let
g:magit_commit_fixup_mapping
=
get
(
g
:,
'magit_commit_fixup_mapping'
,
'CF'
)
let
g:magit_close_commit_mapping
=
get
(
g
:,
'magit_close_commit_mapping'
,
'CU'
)
let
g:magit_reload_mapping
=
get
(
g
:,
'magit_reload_mapping'
,
'R'
)
let
g:magit_ignore_mapping
=
get
(
g
:,
'magit_ignore_mapping'
,
'I'
)
let
g:magit_close_mapping
=
get
(
g
:,
'magit_close_mapping'
,
'q'
)
...
...
@@ -661,6 +662,7 @@ function! magit#show_magit(display, ...)
execute
"nnoremap <buffer> <silent> "
.
g:magit_commit_mapping
.
" :call magit#commit_command('CC')<cr>"
execute
"nnoremap <buffer> <silent> "
.
g:magit_commit_amend_mapping
.
" :call magit#commit_command('CA')<cr>"
execute
"nnoremap <buffer> <silent> "
.
g:magit_commit_fixup_mapping
.
" :call magit#commit_command('CF')<cr>"
execute
"nnoremap <buffer> <silent> "
.
g:magit_close_commit_mapping
.
" :call magit#close_commit()<cr>"
execute
"nnoremap <buffer> <silent> "
.
g:magit_ignore_mapping
.
" :call magit#ignore_file()<cr>"
execute
"nnoremap <buffer> <silent> "
.
g:magit_close_mapping
.
" :call magit#close_magit()<cr>"
execute
"nnoremap <buffer> <silent> "
.
g:magit_toggle_help_mapping
.
" :call magit#toggle_help()<cr>"
...
...
@@ -926,6 +928,13 @@ function! magit#commit_command(mode)
call
magit#update_buffer
()
endfunction
" magit#close_commit: cancel for commit mode
" close commit section if opened
function
!
magit#close_commit
()
let
b:magit_current_commit_mode
=
''
call
magit#update_buffer
()
endfunction
" magit#jump_hunk: function to jump among hunks
" it closes the current fold (if any), jump to next hunk and unfold it
" param[in] dir: can be 'N' (for next) or 'P' (for previous)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment