GithubHelp home page GithubHelp logo

Comments (9)

airblade avatar airblade commented on August 24, 2024

I've been getting this too. One way around the problem is to deactivate vim-gutter for BufEnter. You can do this by adding let g:gitgutter_on_bufenter = 0 to your vimrc.

But I agree that the core problem is probably iterating over buffers which are no longer current. Right now I look for listed buffers but I'm not certain that's optimal. Do you have any suggestions?

from vim-gitgutter.

airblade avatar airblade commented on August 24, 2024

Another problem, if you have vim-gitgutter bound to BufEnter (the default), is that loading a file will trigger both the BufReadPost and the BufEnter autocommands, both of which call GitGutter on the file. So it's doing twice as much work as necessary.

from vim-gitgutter.

airblade avatar airblade commented on August 24, 2024

I've just made a change (7f1c104) which improves the situation. Please could you try it and let me know if you still have problems?

from vim-gitgutter.

richtaur avatar richtaur commented on August 24, 2024

Hm, after the recent update, I'm actually not seeing a gutter at all! I've reverted to a previous version and the gutter works again. I don't see any errors… is there a log or something I can look at so I can be more helpful? :)

from vim-gitgutter.

airblade avatar airblade commented on August 24, 2024

Oops, my last change stopped vim-gitgutter from updating the signs when one wrote the buffer. Sorry about that.

I've fixed it in fd7fb6c – does this get it working for you again?

from vim-gitgutter.

airblade avatar airblade commented on August 24, 2024

I've sped up FocusGained in 2a5ae17, assuming you have vim-gitgutter set to updated on BufEnter (the default). It now works along the lines of your original suggestion.

from vim-gitgutter.

airblade avatar airblade commented on August 24, 2024

I'm closing this now because the original issue is fixed. Please open a new one if you're still not getting any signs at all.

Thanks!

from vim-gitgutter.

richtaur avatar richtaur commented on August 24, 2024

Hey Andy, latest update works for me and has a noticeable improvement in performance. Thank you very much!

from vim-gitgutter.

airblade avatar airblade commented on August 24, 2024

Hey Matt, thanks for letting me know!

from vim-gitgutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.