Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>op.foldopen

Dark deno-powered completion framework for neovim/Vim
Go to Latest
variable op.foldopen
import { op } from "https://deno.land/x/ddc_vim@v4.3.0/deps.ts";
const { foldopen } = op;

Specifies for which type of commands folds will be opened, if the command moves the cursor into a closed fold. It is a comma-separated list of items. NOTE: When the command is part of a mapping this option is not used. Add the zv command to the mapping to get the same effect. (rationale: the mapping may want to control opening folds itself)

    item            commands
    all             any
    block           "(", "{", "[[", "[{", etc.
    hor             horizontal movements: "l", "w", "fx", etc.
    insert          any command in Insert mode
    jump            far jumps: "G", "gg", etc.
    mark            jumping to a mark: "'m", CTRL-O, etc.
    percent         "%"
    quickfix        ":cn", ":crew", ":make", etc.
    search          search for a pattern: "/", "n", "*", "gd", etc.
                    (not for a search pattern in a ":" command)
                    Also for `[s` and `]s`.
    tag             jumping to a tag: ":ta", CTRL-T, etc.
    undo            undo or redo: "u" and CTRL-R

When a movement command is used for an operator (e.g., "dl" or "y%") this option is not used. This means the operator will include the whole closed fold. Note that vertical movements are not here, because it would make it very difficult to move onto a closed fold. In insert mode the folds containing the cursor will always be open when text is inserted. To close folds you can re-apply 'foldlevel' with the zx command or set the 'foldclose' option to "all".

(default: "block,hor,mark,percent,quickfix, search,tag,undo")

not available when compiled without the +folding feature

type

GlobalOption<string>