mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 19:43:47 -05:00
Update FAQ in vim doc: refresh on file save
This commit is contained in:
@@ -445,19 +445,29 @@ a. How do I turn off realtime updates?
|
|||||||
>
|
>
|
||||||
autocmd! gitgutter CursorHold,CursorHoldI
|
autocmd! gitgutter CursorHold,CursorHoldI
|
||||||
<
|
<
|
||||||
b. Why can't I unstage staged changes?
|
|
||||||
|
b. I turned off realtime updates, how can I have signs updated when I save a
|
||||||
|
file?
|
||||||
|
|
||||||
|
If you really want to update the signs when you save a file, add this to your
|
||||||
|
|vimrc|:
|
||||||
|
>
|
||||||
|
autocmd BufWritePost * GitGutter
|
||||||
|
<
|
||||||
|
|
||||||
|
c. Why can't I unstage staged changes?
|
||||||
|
|
||||||
This plugin is for showing changes between the working tree and the index
|
This plugin is for showing changes between the working tree and the index
|
||||||
(and staging/undoing those changes). Unstaging a staged hunk would require
|
(and staging/undoing those changes). Unstaging a staged hunk would require
|
||||||
showing changes between the index and HEAD, which is out of scope.
|
showing changes between the index and HEAD, which is out of scope.
|
||||||
|
|
||||||
c. Why are the colours in the sign column weird?
|
d. Why are the colours in the sign column weird?
|
||||||
|
|
||||||
Your colorscheme is configuring the |hl-SignColumn| highlight group weirdly.
|
Your colorscheme is configuring the |hl-SignColumn| highlight group weirdly.
|
||||||
Please see |g:gitgutter_override_sign_column_highlight| on customising the
|
Please see |g:gitgutter_override_sign_column_highlight| on customising the
|
||||||
sign column.
|
sign column.
|
||||||
|
|
||||||
d. What happens if I also use another plugin which uses signs (e.g. Syntastic)?
|
e. What happens if I also use another plugin which uses signs (e.g. Syntastic)?
|
||||||
|
|
||||||
Vim only allows one sign per line. Vim-gitgutter will not interfere with
|
Vim only allows one sign per line. Vim-gitgutter will not interfere with
|
||||||
signs it did not add.
|
signs it did not add.
|
||||||
|
|||||||
Reference in New Issue
Block a user