Skip to main content
Module

x/denops_std/option/mod.ts>viewoptions

📚 Standard module for denops.vim
Go to Latest
variable viewoptions
import { viewoptions } from "https://deno.land/x/denops_std@v5.2.0/option/mod.ts";

Changes the effect of the :mkview command. It is a comma-separated list of words. Each word enables saving and restoring something: word save and restore cursor cursor position in file and in window folds manually created folds, opened/closed folds and local fold options options options and mappings local to a window or buffer (not global values for local options) localoptions same as "options" slash backslashes in file names replaced with forward slashes unix with Unix end-of-line format (single <NL>), even when on MS-Windows curdir the window-local directory, if set with :lcd

"slash" and "unix" are useful on MS-Windows when sharing view files with Unix. The Unix version of Vim cannot source dos format scripts, but the MS-Windows version of Vim can source unix format scripts.

(default: "folds,options,cursor,curdir")

not available when compiled without the +mksession feature