Permalink
Browse files

Outline folding

  • Loading branch information...
exhuma committed Apr 12, 2012
1 parent 38306a1 commit cb5a8d5700650e439f749dc373fbbd37e9b2873e
Showing with 36 additions and 3 deletions.
  1. +36 −3 session-01/README.rst
View
@@ -256,13 +256,46 @@ Macros
``@@``
Re-execute the last executed macro.
-
-
Folding
-------
-**TODO**
+::
+
+ :h folding
+
+The main folding methods are:
+
+manual
+ Only use manually created folds
+
+indent
+ use the file indentation level for fold. This uses the setting
+ ``shiftwidth`` to determine the folding level.
+
+marker
+ uses a special marker (default: ``{{{`` and ``}}}``) to define where a fold
+ starts and ends
+
+syntax
+ Uses the sytax definition to set folds. This only works if the syntax
+ definition supports this feature.
+
+Useful shortcuts
+~~~~~~~~~~~~~~~~
+
+``za``
+ Toggle open/close
+
+``zf``
+ Creates a new fold in manual and marker mode (in marker mode, it
+ automatically inserts the markers surrounded with the value from
+ ``'commentstring'``!)
+
+``zR``
+ Open all folds.
+``zM``
+ Close all folds.
Customisation
=============

0 comments on commit cb5a8d5

Please sign in to comment.