mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03: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:
|
You can explicitly turn vim-gitgutter off and on:
|
||||||
|
|
||||||
* turn off with `:DisableGitGutter`
|
* turn off with `:GitGutterDisable`
|
||||||
* turn on with `:EnableGitGutter`
|
* turn on with `:GitGutterEnable`
|
||||||
* toggle with `:ToggleGitGutter`.
|
* toggle with `:GitGutterToggle`.
|
||||||
|
|
||||||
And you can turn line highlighting on and off (defaults to off):
|
And you can turn line highlighting on and off (defaults to off):
|
||||||
|
|
||||||
* turn on with `:EnableGitGutterLineHighlights`
|
* turn on with `:GitGutterLineHighlightsEnable`
|
||||||
* turn off with `:DisableGitGutterLineHighlights`
|
* turn off with `:GitGutterLineHighlightsDisable`
|
||||||
* toggle with `:ToggleGitGutterLineHighlights`.
|
* toggle with `:GitGutterLineHighlightsToggle`.
|
||||||
|
|
||||||
Furthermore you can jump between hunks:
|
Furthermore you can jump between hunks:
|
||||||
|
|
||||||
|
|||||||
@@ -338,13 +338,13 @@ function! DisableGitGutter()
|
|||||||
let g:gitgutter_enabled = 0
|
let g:gitgutter_enabled = 0
|
||||||
call s:clear_signs(s:current_file())
|
call s:clear_signs(s:current_file())
|
||||||
endfunction
|
endfunction
|
||||||
command DisableGitGutter call DisableGitGutter()
|
command GitGutterDisable call DisableGitGutter()
|
||||||
|
|
||||||
function! EnableGitGutter()
|
function! EnableGitGutter()
|
||||||
let g:gitgutter_enabled = 1
|
let g:gitgutter_enabled = 1
|
||||||
call GitGutter()
|
call GitGutter()
|
||||||
endfunction
|
endfunction
|
||||||
command EnableGitGutter call EnableGitGutter()
|
command GitGutterEnable call EnableGitGutter()
|
||||||
|
|
||||||
function! ToggleGitGutter()
|
function! ToggleGitGutter()
|
||||||
if g:gitgutter_enabled
|
if g:gitgutter_enabled
|
||||||
@@ -353,22 +353,22 @@ function! ToggleGitGutter()
|
|||||||
call EnableGitGutter()
|
call EnableGitGutter()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
command ToggleGitGutter call ToggleGitGutter()
|
command GitGutterToggle call ToggleGitGutter()
|
||||||
|
|
||||||
function! DisableGitGutterLineHighlights()
|
function! DisableGitGutterLineHighlights()
|
||||||
call s:update_line_highlights(0)
|
call s:update_line_highlights(0)
|
||||||
endfunction
|
endfunction
|
||||||
command DisableGitGutterLineHighlights call DisableGitGutterLineHighlights()
|
command GitGutterLineHighlightsDisable call DisableGitGutterLineHighlights()
|
||||||
|
|
||||||
function! EnableGitGutterLineHighlights()
|
function! EnableGitGutterLineHighlights()
|
||||||
call s:update_line_highlights(1)
|
call s:update_line_highlights(1)
|
||||||
endfunction
|
endfunction
|
||||||
command EnableGitGutterLineHighlights call EnableGitGutterLineHighlights()
|
command GitGutterLineHighlightsEnable call EnableGitGutterLineHighlights()
|
||||||
|
|
||||||
function! ToggleGitGutterLineHighlights()
|
function! ToggleGitGutterLineHighlights()
|
||||||
call s:update_line_highlights(s:highlight_lines ? 0 : 1)
|
call s:update_line_highlights(s:highlight_lines ? 0 : 1)
|
||||||
endfunction
|
endfunction
|
||||||
command ToggleGitGutterLineHighlights call ToggleGitGutterLineHighlights()
|
command GitGutterLineHighlightsToggle call ToggleGitGutterLineHighlights()
|
||||||
|
|
||||||
function! GitGutterNextHunk()
|
function! GitGutterNextHunk()
|
||||||
if s:is_active()
|
if s:is_active()
|
||||||
|
|||||||
Reference in New Issue
Block a user