Mercurial > vim
comparison runtime/doc/fold.txt @ 27903:d19b7aee1925
Update runtime files.
Commit: https://github.com/vim/vim/commit/c51cf0329809c7ae946c59d6f56699227efc9d1b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 26 12:25:45 2022 +0000
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Feb 2022 13:30:04 +0100 |
parents | 3649b5a6b1b6 |
children | f8116058ca76 |
comparison
equal
deleted
inserted
replaced
27902:8481c8908b5e | 27903:d19b7aee1925 |
---|---|
505 | 505 |
506 :set foldtext=MyFoldText() | 506 :set foldtext=MyFoldText() |
507 :function MyFoldText() | 507 :function MyFoldText() |
508 : let line = getline(v:foldstart) | 508 : let line = getline(v:foldstart) |
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. The context is set to the script where the | 514 the window that displays the line. The context is set to the script where the |
515 option was last set. | 515 option was last set. |