diff --git a/autoload/gitgutter.vim b/autoload/gitgutter.vim index b413834..1f237ab 100644 --- a/autoload/gitgutter.vim +++ b/autoload/gitgutter.vim @@ -126,10 +126,10 @@ function! gitgutter#setup_maps() nmap ]c GitGutterNextHunk endif - if !hasmapto('GitGutterStageHunk') && maparg('hs', 'x') ==# '' + if !hasmapto('GitGutterStageHunk', 'v') && maparg('hs', 'x') ==# '' xmap hs GitGutterStageHunk endif - if !hasmapto('GitGutterStageHunk') && maparg('hs', 'n') ==# '' + if !hasmapto('GitGutterStageHunk', 'n') && maparg('hs', 'n') ==# '' nmap hs GitGutterStageHunk endif if !hasmapto('GitGutterUndoHunk') && maparg('hu', 'n') ==# ''