diff --git a/README.mkd b/README.mkd index 5476d4f..9974ed0 100644 --- a/README.mkd +++ b/README.mkd @@ -41,15 +41,15 @@ If you want vim-gitgutter off by default, add `let g:gitgutter_enabled = 0` to y You can explicitly turn vim-gitgutter off and on: -* turn off with `:DisableGitGutter` -* turn on with `:EnableGitGutter` -* toggle with `:ToggleGitGutter`. +* turn off with `:GitGutterDisable` +* turn on with `:GitGutterEnable` +* toggle with `:GitGutterToggle`. And you can turn line highlighting on and off (defaults to off): -* turn on with `:EnableGitGutterLineHighlights` -* turn off with `:DisableGitGutterLineHighlights` -* toggle with `:ToggleGitGutterLineHighlights`. +* turn on with `:GitGutterLineHighlightsEnable` +* turn off with `:GitGutterLineHighlightsDisable` +* toggle with `:GitGutterLineHighlightsToggle`. Furthermore you can jump between hunks: diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index e6fdc22..6114646 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -338,13 +338,13 @@ function! DisableGitGutter() let g:gitgutter_enabled = 0 call s:clear_signs(s:current_file()) endfunction -command DisableGitGutter call DisableGitGutter() +command GitGutterDisable call DisableGitGutter() function! EnableGitGutter() let g:gitgutter_enabled = 1 call GitGutter() endfunction -command EnableGitGutter call EnableGitGutter() +command GitGutterEnable call EnableGitGutter() function! ToggleGitGutter() if g:gitgutter_enabled @@ -353,22 +353,22 @@ function! ToggleGitGutter() call EnableGitGutter() endif endfunction -command ToggleGitGutter call ToggleGitGutter() +command GitGutterToggle call ToggleGitGutter() function! DisableGitGutterLineHighlights() call s:update_line_highlights(0) endfunction -command DisableGitGutterLineHighlights call DisableGitGutterLineHighlights() +command GitGutterLineHighlightsDisable call DisableGitGutterLineHighlights() function! EnableGitGutterLineHighlights() call s:update_line_highlights(1) endfunction -command EnableGitGutterLineHighlights call EnableGitGutterLineHighlights() +command GitGutterLineHighlightsEnable call EnableGitGutterLineHighlights() function! ToggleGitGutterLineHighlights() call s:update_line_highlights(s:highlight_lines ? 0 : 1) endfunction -command ToggleGitGutterLineHighlights call ToggleGitGutterLineHighlights() +command GitGutterLineHighlightsToggle call ToggleGitGutterLineHighlights() function! GitGutterNextHunk() if s:is_active()