Mercurial > vim
comparison runtime/doc/fold.txt @ 27321:3649b5a6b1b6
Update runtime files
Commit: https://github.com/vim/vim/commit/6f4754b9f7253d7e4ba527064a24aff1acdb1e8f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 23 12:07:04 2022 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Jan 2022 13:15:05 +0100 |
parents | edb7d53fc7e3 |
children | d19b7aee1925 |
comparison
equal
deleted
inserted
replaced
27320:6c9018237bfa | 27321:3649b5a6b1b6 |
---|---|
1 *fold.txt* For Vim version 8.2. Last change: 2021 Jul 13 | 1 *fold.txt* For Vim version 8.2. Last change: 2022 Jan 22 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
509 : let sub = substitute(line, '/\*\|\*/\|{{{\d\=', '', 'g') | 509 : let sub = substitute(line, '/\*\|\*/\|{{{\d\=', '', 'g') |
510 : return v:folddashes . sub | 510 : return v:folddashes . sub |
511 :endfunction | 511 :endfunction |
512 | 512 |
513 Evaluating 'foldtext' is done in the |sandbox|. The current window is set to | 513 Evaluating 'foldtext' is done in the |sandbox|. The current window is set to |
514 the window that displays the line. Errors are ignored. | 514 the window that displays the line. The context is set to the script where the |
515 option was last set. | |
516 | |
517 Errors are ignored. For debugging set the 'debug' option to "throw". | |
515 | 518 |
516 The default value is |foldtext()|. This returns a reasonable text for most | 519 The default value is |foldtext()|. This returns a reasonable text for most |
517 types of folding. If you don't like it, you can specify your own 'foldtext' | 520 types of folding. If you don't like it, you can specify your own 'foldtext' |
518 expression. It can use these special Vim variables: | 521 expression. It can use these special Vim variables: |
519 v:foldstart line number of first line in the fold | 522 v:foldstart line number of first line in the fold |