Giter Club home page Giter Club logo

Comments (14)

luan avatar luan commented on September 6, 2024

Do this:

  • open vim

  • go to a file where typing and moving is slow

  • run

    :profile start /tmp/vim.prof`
    :profile func *
    :profile file *
  • perform slow actions for a few seconds

  • run :profile pause

  • exit vim

Now you should have a /tmp/vim.prof file, send that over to me.

from vimfiles.

sergueif avatar sergueif commented on September 6, 2024

https://gist.github.com/sergueif/59cf97bace639f2ad09c

from vimfiles.

luan avatar luan commented on September 6, 2024

Does :SyntasticToggleMode help?

from vimfiles.

sergueif avatar sergueif commented on September 6, 2024

Sort of. I notice it's faster, but still slow.

from vimfiles.

luan avatar luan commented on September 6, 2024

Hummm, ruby files?

from vimfiles.

sergueif avatar sergueif commented on September 6, 2024

yes

from vimfiles.

sergueif avatar sergueif commented on September 6, 2024

One thing that's particularly slow (I dunno, 0.5 sec) is hitting ESC key from insert mode. You can see the cursor not change for a while.

from vimfiles.

luan avatar luan commented on September 6, 2024

Can you send me a file that is consistently slow?

from vimfiles.

luan avatar luan commented on September 6, 2024

Also, do this:

:syntime on
[ redraw the text at least once, scroll up and down a lot or with CTRL-L]
:syntime report

from vimfiles.

sergueif avatar sergueif commented on September 6, 2024

https://gist.github.com/sergueif/b0b428e62a09ea8c6ba7

But the ESC thing is slow even with an empty file like

vim foo.txt

And ESC is already bad. Heres prof of a bunch of 'o' strokes and ESC:
https://gist.github.com/sergueif/238bfe84aad1c489a55d

(although I was in a rails folder)

from vimfiles.

sergueif avatar sergueif commented on September 6, 2024

If I'm not in a rails folder, things are ok. Once in a rails app, empty file ESC is slow.

from vimfiles.

sergueif avatar sergueif commented on September 6, 2024

screen shot 2014-11-27 at 11 15 57 am

from vimfiles.

luan avatar luan commented on September 6, 2024

I can't reproduce this here, try disabling airline and see if that helps, your profile results don't actually show any slowness though...

from vimfiles.

sergueif avatar sergueif commented on September 6, 2024

Aaight, I'll bring my laptop sometime to work, so we can debug. Thanks for giving it a shot.

from vimfiles.

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.