Mercurial > vim
comparison runtime/doc/fold.txt @ 11062:1218c5353e2b
Runtime file updates.
commit https://github.com/vim/vim/commit/214641f77df6f318a4b3a0b09723c19859a103f4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 5 17:04:09 2017 +0100
Runtime file updates.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 05 Mar 2017 17:15:05 +0100 |
parents | 9f48eab77d62 |
children | 146a1e213b60 |
comparison
equal
deleted
inserted
replaced
11061:0f11b92d7f5e | 11062:1218c5353e2b |
---|---|
62 Some lines are ignored and get the fold level of the line above or below it, | 62 Some lines are ignored and get the fold level of the line above or below it, |
63 whichever is lower. These are empty or white lines and lines starting | 63 whichever is lower. These are empty or white lines and lines starting |
64 with a character in 'foldignore'. White space is skipped before checking for | 64 with a character in 'foldignore'. White space is skipped before checking for |
65 characters in 'foldignore'. For C use "#" to ignore preprocessor lines. | 65 characters in 'foldignore'. For C use "#" to ignore preprocessor lines. |
66 | 66 |
67 When you want to ignore lines in another way, use the 'expr' method. The | 67 When you want to ignore lines in another way, use the "expr" method. The |
68 |indent()| function can be used in 'foldexpr' to get the indent of a line. | 68 |indent()| function can be used in 'foldexpr' to get the indent of a line. |
69 | 69 |
70 | 70 |
71 EXPR *fold-expr* | 71 EXPR *fold-expr* |
72 | 72 |
137 |foldlevel()| can be useful to compute a fold level relative to a previous | 137 |foldlevel()| can be useful to compute a fold level relative to a previous |
138 fold level. But note that foldlevel() may return -1 if the level is not known | 138 fold level. But note that foldlevel() may return -1 if the level is not known |
139 yet. And it returns the level at the start of the line, while a fold might | 139 yet. And it returns the level at the start of the line, while a fold might |
140 end in that line. | 140 end in that line. |
141 | 141 |
142 It may happened that folds are not updated properly. You can use |zx| or |zX| | 142 It may happen that folds are not updated properly. You can use |zx| or |zX| |
143 to force updating folds. | 143 to force updating folds. |
144 | 144 |
145 | 145 |
146 SYNTAX *fold-syntax* | 146 SYNTAX *fold-syntax* |
147 | 147 |