Skip to main content
Module

x/ddc_vim/deps.ts>op.foldlevelstart

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

Sets 'foldlevel' when starting to edit another buffer in a window. Useful to always start editing with all folds closed (value zero), some folds closed (one) or no folds closed (99). This is done before reading any modeline, thus a setting in a modeline overrules this option. Starting to edit a file for diff-mode also ignores this option and closes all folds. It is also done before BufReadPre autocommands, to allow an autocmd to overrule the 'foldlevel' value for specific files. When the value is negative, it is not used.

(default: -1)

not available when compiled without the +folding feature

type

GlobalOption<number>