I'm programming mostly in Python/Cython and use
foldclose=). Overall, this works fairly well, i.e. functions/classes/methods are folded reliably mostly. However, I have one problem: folds are often opend/closed while I'm typing. Specifically,
- While working on an indented block (usually a long multiline argument list or a long list/dict/... initialization spanning multiple lines), that very block I'm in is folded when I hit return;
- When starting a string at the end of a block, the block below is unfolded.
This is all very annoying and distracting.
Is there a way to completely disable any auto-folding while I type?
Functionalities I want to retain:
- Fold/unfold blocks I'm in with a command/keystroke (I'm usually using
- Fold the whole document with a single keystroke/command.
- Open new buffers fully folded (though it's not a deal-breaker if I have to do this manually).