mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Change command names to follow GitGutterXxxx.
This commit is contained in:
committed by
Andy Stewart
parent
20f37f5fa9
commit
a67904e812
12
README.mkd
12
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:
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user