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@v4.1.4/option/mod.ts";

{not available when compiled without the |+mksession| feature} 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 ), 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.

type

{ get(denops: Denops): Promise<string>; set(denops: Denops, value: string): Promise<void>; reset(denops: Denops): Promise<void>; getGlobal(denops: Denops): Promise<string>; setGlobal(denops: Denops, value: string): Promise<void>; resetGlobal(denops: Denops): Promise<void>; }