Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/option/mod.ts>foldexpr

๐Ÿ“š Standard module for denops.vim
Latest
variable foldexpr
import { foldexpr } from "https://deno.land/x/denops_std@v6.5.1/option/mod.ts";

The expression used for when 'foldmethod' is "expr". It is evaluated for each line to obtain its fold level. The context is set to the script where 'foldexpr' was set, script-local items can be accessed. See fold-expr for the usage.

The expression will be evaluated in the sandbox if set from a modeline, see sandbox-option. This option can't be set from a modeline when the 'diff' option is on or the 'modelineexpr' option is off.

It is not allowed to change text or jump to another window while evaluating 'foldexpr' textlock.

(default: "0")

not available when compiled without the +folding or +eval features