Giter Club home page Giter Club logo

Comments (4)

dhruvasagar avatar dhruvasagar commented on June 25, 2024

This is odd. Can you check autocmds setup for CursorHold / CursorHoldI ?

from vim-less.

kafeltz avatar kafeltz commented on June 25, 2024

Well, after making some test, this is only happening in vim in MAC using (both default term and iTerm2). At home using ubuntu/mint it was lighting fast.

Anyway, the issue is not related to CursorHold[i]. It's something about this:

:autocmd matchparen

matchparen WinEnter
* call s:Highlight_Matching_Pair()
matchparen CursorMoved
* call s:Highlight_Matching_Pair()
matchparen CursorMovedI
* call s:Highlight_Matching_Pair()
matchparen TextChanged
* call s:Highlight_Matching_Pair()
matchparen TextChangedI
* call s:Highlight_Matching_Pair()

When disabled (for testing) it becomes smooth again.

Is not vim-less issue.

There are some people complaining about the same thing in other repo:
LaTeX-Box-Team/LaTeX-Box#163
preservim/tagbar#107

Or just type in google: vim Highlight_Matching_Pair slow.

Thx anyway, I will take a look to a proper solution.

from vim-less.

dhruvasagar avatar dhruvasagar commented on June 25, 2024

from vim-less.

kafeltz avatar kafeltz commented on June 25, 2024

I'm still having this annoying issue and it's something related to the RegexEngine.
Taking a look at the: http://stackoverflow.com/questions/16902317/vim-slow-with-ruby-syntax-highlighting

I can confirm that set lazyredraw does improve the speed from annoying lag to minor lag.

Setting set regexpengine=0 it does improve the speed to vim normal (no lag feeled), but hightlight obviously stop working, but it shows where to look to fix the issue.

I know it's not vim-less plugin issue, i'm just documenting what I got so far.

from vim-less.

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.