Help with python_fold.vim

S

stephen

I see that the python_fold plugin for vim lets you fold
classes/functions, etc. Can someone tell me how to fold/unfold
sections? Thanks.

Stephen
 
S

Sybren Stuvel

(e-mail address removed) enlightened us with:
Found an earlier thread that answered my question:

Good for you.

I often want only one or two levels of indentation at maximum. This
ensures not all if/while/for etc. blocks are indented. Most of my
python files either contain classes (max indent 2) or only functions
(max indent 1). I make sure Vim uses the correct options by adding the
following line as the last line in the Python file:

# vim:foldnestmax=2

Sybren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,274
Messages
2,571,366
Members
48,057
Latest member
AntoineGre

Latest Threads

Top