tomtom / quickfixsigns_vim

Mark quickfix & location list items with signs
http://www.vim.org/scripts/script.php?script_id=2584
GNU General Public License v3.0
131 stars 13 forks source link

make vcs signs auto refresh after :Gwrite and :Gcommit. #17

Closed stardiviner closed 12 years ago

stardiviner commented 12 years ago

Just like the title. those +,-,= signs in numberline does not automatically refresh after execute fugitive script's commands: :Gwrite and :Gcommit. They will disappear until I execute :w.

tomtom commented 12 years ago

Hi,

I'm not sure why but it seems to me that the +,-,= lines get updated with the current version of quickfixsigns and fugitive from github, don't they? Which version of these plugins do you use? If it still doesn't work with the current versions, you'd have to tell me step by step what you are doing, what goes wrong, what outcome you would expect etc.

Regads

stardiviner commented 12 years ago

I use fugitive with quickfixsigns, I usually use :Gdiff, then use dp, do to do diff. for example: when I dp from disk version to put diff to Git repo version, then I switch window from one to another, quickfixsigns should update signs, because I set

g:quickfixsigns_events = (['BufEnter', 'BufLeave',
            \ 'CursorHold', 'CursorHoldI',                                  
            \ 'InsertLeave', 'InsertEnter', 'InsertChange'])  

There is a BufEnter and BufLeave event, so signs should be updated when switch windows. but it does not.

tomtom commented 12 years ago

You have to add those events to g:quickfixsigns_class_vcsdiff.event. Please define g:quickfixsigns_class_vcsdiff in your vimrc file.

Displaying signs for vcs changes is expensive and should be done sparingly.