diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-14 23:24:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-14 23:24:24 +0200 |
commit | 00a927d62b68a3523cb1c4f9aa3f7683345c8182 (patch) | |
tree | 9138abae11d363aa87818791195edf6e85aef15d /runtime/doc/fold.txt | |
parent | f1eeae94fd78f81d85d2abe3d955dc21d5ef979c (diff) | |
download | vim-git-00a927d62b68a3523cb1c4f9aa3f7683345c8182.tar.gz |
Updated runtime files.
Diffstat (limited to 'runtime/doc/fold.txt')
-rw-r--r-- | runtime/doc/fold.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/doc/fold.txt b/runtime/doc/fold.txt index 60704c598..cf920968f 100644 --- a/runtime/doc/fold.txt +++ b/runtime/doc/fold.txt @@ -1,4 +1,4 @@ -*fold.txt* For Vim version 7.2. Last change: 2010 Feb 21 +*fold.txt* For Vim version 7.2. Last change: 2010 May 13 VIM REFERENCE MANUAL by Bram Moolenaar @@ -127,6 +127,9 @@ fold level. But note that foldlevel() may return -1 if the level is not known yet. And it returns the level at the start of the line, while a fold might end in that line. +It may happened that folds are not updated properly. You can use |zx| or |zX| +to force updating folds. + SYNTAX *fold-syntax* @@ -352,9 +355,13 @@ zv View cursor line: Open just enough folds to make the line in *zx* zx Update folds: Undo manually opened and closed folds: re-apply 'foldlevel', then do "zv": View cursor line. + Also forces recomputing folds. This is useful when using + 'foldexpr' and the buffer is changed in a way that results in + folds not to be updated properly. *zX* zX Undo manually opened and closed folds: re-apply 'foldlevel'. + Also forces recomputing folds, like |zx|. *zm* zm Fold more: Subtract one from 'foldlevel'. If 'foldlevel' was |