mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
@@ -126,10 +126,10 @@ function! gitgutter#setup_maps()
|
|||||||
nmap <buffer> ]c <Plug>GitGutterNextHunk
|
nmap <buffer> ]c <Plug>GitGutterNextHunk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !hasmapto('<Plug>GitGutterStageHunk') && maparg('<Leader>hs', 'x') ==# ''
|
if !hasmapto('<Plug>GitGutterStageHunk', 'v') && maparg('<Leader>hs', 'x') ==# ''
|
||||||
xmap <buffer> <Leader>hs <Plug>GitGutterStageHunk
|
xmap <buffer> <Leader>hs <Plug>GitGutterStageHunk
|
||||||
endif
|
endif
|
||||||
if !hasmapto('<Plug>GitGutterStageHunk') && maparg('<Leader>hs', 'n') ==# ''
|
if !hasmapto('<Plug>GitGutterStageHunk', 'n') && maparg('<Leader>hs', 'n') ==# ''
|
||||||
nmap <buffer> <Leader>hs <Plug>GitGutterStageHunk
|
nmap <buffer> <Leader>hs <Plug>GitGutterStageHunk
|
||||||
endif
|
endif
|
||||||
if !hasmapto('<Plug>GitGutterUndoHunk') && maparg('<Leader>hu', 'n') ==# ''
|
if !hasmapto('<Plug>GitGutterUndoHunk') && maparg('<Leader>hu', 'n') ==# ''
|
||||||
|
|||||||
Reference in New Issue
Block a user