Tuesday, August 27, 2013

Question about folding methods

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJSHQWKAAoJEHWv8EScabi8JbUP/3DOFP6hTqBAfYTzEGez9ZU9
HsyaIBUjJZdsqefheAWdfnNYd/1VLekP3MOMR5Ne8kFupcfhYzulNqsNKvA6l80W
6vEZ8pp6qBB4TOnpi229m2/t+fbb/Bn0fK4X/YtnCv5TljtVe/4sw/6cY7RQz+pp
vuljDLGZe/c4uwZzVu5dhgFts0xqdvRiR4YdJiagNRCqDYeTDll7KRgEsZVUhkZv
T1NNBh9Up8DmJ2LSzrM5D0+IC0VjXyultmkMV/rkzSZpRDZF362IjUYMz6pWcKTa
9gYBYfBC897k1f4Io2CFig64gZO9Dn59vJYjLrkSkVcF4MsWykXGQsE5BQnOvBmR
KC4ZMCC7PeBfEmUwT1i0m4GKcuSOAB+Pu+qp0JamzhUVqsU6gQYgdxYVExu12070
0anK3ZZ1RYJGkMOXyiA13nATEEyamxDJ9JDAORpfAgqeGFVR0FzJDnKjUiNIKAZE
R5pg0S5T3FFiTHel6lC/XeBtjpWHI+2cBnYCyvyXhoUL7qg7VvI4CQPDgh4A+DK/
sjThFKxtxBy6noXVQ7vbeCQEqO4lpiSUTXwvGOVKQ6AmTwyHnEmVIk29phqnLVlV
SUDvtpUiMV9RysN3hPHD/LzwcBgwHVwhmHQWOO8OQoHfI54loR/jHjYkk2WgLZvw
gFldY2f/Cg6UtU+L4s6/
=/aTS
-----END PGP SIGNATURE-----
Hi,

I have a question about folding methods. Out of my head there are 3: syntax, indent, manual.
When I set the mode to one of the "automatic" ones (syntax, indent), it doesn't seem that I can zf anymore. I tried to switch to manual (:set foldmethod=manual), set the fold manually and then switch back to indent but then my manual fold got opened again.
Is there any way to be in indent mode because then I can easily use "zc" and also use "zf" when I want to fold outside the indentations?
Is there a faster way to switch between folding methods than ":set foldmethod=<method>"?

Niels

No comments: