Giter Club home page Giter Club logo

Comments (10)

squfrans avatar squfrans commented on July 1, 2024

i cannot reproduce this. flake8 also shows no warnings.

class Class(object):
+---  2 lines: """ docstring

    # comment
+---  2 lines: def method():
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr  8 2016 13:38:49)
MacOS X (unix) version
Included patches: 1-1707

from simpylfold.

tmhedberg avatar tmhedberg commented on July 1, 2024

Agreed, can't reproduce on Vim 7.4.1572.

Please reopen the issue if you are able to reproduce reliably.

from simpylfold.

iago-lito avatar iago-lito commented on July 1, 2024

I'm sorry to confirm :(

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 28 2015 22:53:35)
Included patches: 1-803

this is Debian 8 with gnome shell..

$ uname -a
Linux etak 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux

Here is my tiny file as I successively type za, no matter where my cursor is in the class:

misfold

Any idea what may be going wrong?

from simpylfold.

squfrans avatar squfrans commented on July 1, 2024

803 is almost a year old. not ancient, but vim moves quite fast.
my guess would be changes/bugfixes in the fold code (or related) since then...

from simpylfold.

iago-lito avatar iago-lito commented on July 1, 2024

I'll recompile then tell you :)

from simpylfold.

tmhedberg avatar tmhedberg commented on July 1, 2024

Also, what's the value of your foldminlines option? If it's larger than the length of the docstring (which is short in your examples), it could lead to this behavior, which would be technically correct, but maybe confusing.

from simpylfold.

iago-lito avatar iago-lito commented on July 1, 2024

My foldminlines is set to 1. Making the docstring longer yields the same result :(

misfold

from simpylfold.

tmhedberg avatar tmhedberg commented on July 1, 2024

Have you tried it with a newer version of Vim yet?

Another possibility could be interference between plugins. You could try disabling your other plugins temporarily to see if the folding works correctly when only this plugin is enabled.

from simpylfold.

iago-lito avatar iago-lito commented on July 1, 2024

I have tried disabling all pathogen plugins except SimpylFold with no success.

I have tried ignoring my .vimrc with vim -u NONE but it does not even load SimpylFold then. Is there an easy way I can get vim working with only pathogen + SimpylFold on?

I have not tried recompiling vim yet because it would be a mess at work. I'll tell you when I do :)

from simpylfold.

iago-lito avatar iago-lito commented on July 1, 2024

Hey, this is a new Vim with a clean .vim folder and fresh plugins:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 27 2016 14:32:10)
Included patches: 1-2265

.. and the problem no longer occurs. Cheers :)

from simpylfold.

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.