Comments (10)
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.
Agreed, can't reproduce on Vim 7.4.1572.
Please reopen the issue if you are able to reproduce reliably.
from simpylfold.
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:
Any idea what may be going wrong?
from simpylfold.
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.
I'll recompile then tell you :)
from simpylfold.
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.
My foldminlines
is set to 1
. Making the docstring longer yields the same result :(
from simpylfold.
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.
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.
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)
- Folds are invalid after running formatter with ale HOT 3
- Releases Support HOT 1
- More configuration HOT 2
- SimpylFold with large modules makes basic operations slow HOT 3
- Auto close fold include current line after delete line HOT 5
- Comment BLOCKS (in file licenses)
- Plugin ceases to work if a module is named after its parent directory HOT 1
- docstring folding not working with empty line HOT 2
- Support folding long block of code by indentation? HOT 4
- Plugin is not working on Ubuntu Vi IMproved 8.0 HOT 3
- Folds only exist after using zx (E490: No fold found) when using "telescope" fzf plugin HOT 6
- Support for other languages? HOT 1
- is it possible to have only 1 line separating folds ? HOT 2
- the function/class names should have an higher contrast than the lines numbers HOT 3
- Possibility of defining custom folds? HOT 1
- Repository not found HOT 1
- Folding Code in Child Classes HOT 2
- SimpylFold won't indent top level functions HOT 4
- Can't turn off docstring folding HOT 5
- SimpylFold not working (E490: no fold found) on macOS Sonoma with Vundle HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simpylfold.