tmhedberg/SimpylFold

Not folding Properly

rosaliel opened this issue · 2 comments

I installed SimpylFold using Vundle. Imports and methods defined inside classes fold fine, but when it comes to functions it either folds only the line of the function definition or folds nothing at all (both illustrated in the attached screenshot) .

image

Is there any chance you could share a copy of the file exhibiting this behavior? Also, what is the output of the following command?

:set tabstop? softtabstop? shiftwidth?

I looked at it again, and noticed that it folds correctly 8 spaces indentations (therefore it folded correctly methods defined inside classes) but not 4 spaces indentation.

I fixed it with set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab

Thanks!