From a986ab054788776dca269d6c289b470255d54e8c Mon Sep 17 00:00:00 2001 From: Martin Bukatovic Date: Fri, 1 Jun 2018 21:31:52 +0200 Subject: [PATCH] Update FAQ in vim doc: refresh on file save --- doc/gitgutter.txt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/gitgutter.txt b/doc/gitgutter.txt index 8cf62b9..e9c8f01 100644 --- a/doc/gitgutter.txt +++ b/doc/gitgutter.txt @@ -445,19 +445,29 @@ a. How do I turn off realtime updates? > 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 (and staging/undoing those changes). Unstaging a staged hunk would require 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. Please see |g:gitgutter_override_sign_column_highlight| on customising the 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 signs it did not add.