Hey, I downloaded your plugin (which I really like!), but I'm having problems using it when I open multiple buffers with the :edit command.
Everything works ok if I start Vim using e.g.
> vim myPythonFile.py
However, if from within Vim I type:
Then the key mapping from f to za doesn't work, and when I type F (i.e.
:call ToggleFold()<CR>), I get the error:
Error detected while processing function ToggleFold: line 1: E121: Undefined variable: b:folded E15: Invalid expression: ( b:folded == 0 )
(I'm using Vim 7.3 on Windows 7). Any ideas?