Change command names to follow GitGutterXxxx.

This commit is contained in:
Tom Cammann
2013-03-06 13:51:59 +01:00
committed by Andy Stewart
parent 20f37f5fa9
commit a67904e812
2 changed files with 12 additions and 12 deletions

View File

@@ -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:

View File

@@ -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()