Skip to main content
Module

x/ddc_vim/deps.ts>op.sessionoptions

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

Changes the effect of the :mksession command. It is a comma separated list of words. Each word enables saving and restoring something: word save and restore blank empty windows buffers hidden and unloaded buffers, not just those in windows curdir the current directory folds manually created folds, opened/closed folds and local fold options globals global variables that start with an uppercase letter and contain at least one lowercase letter. Only String and Number types are stored. help the help window localoptions options and mappings local to a window or buffer (not global values for local options) options all options and mappings (also global values for local options) skiprtp exclude 'runtimepath' and 'packpath' from the options resize size of the Vim window: 'lines' and 'columns' sesdir the directory in which the session file is located will become the current directory (useful with projects accessed over a network from different systems) slash backslashes in file names replaced with forward slashes tabpages all tab pages; without this only the current tab page is restored, so that you can make a session for each tab page separately terminal include terminal windows where the command can be restored unix with Unix end-of-line format (single <NL>), even when on Windows or DOS winpos position of the whole Vim window winsize window sizes

Don't include both "curdir" and "sesdir". When neither "curdir" nor "sesdir" is included, file names are stored with absolute paths. If you leave out "options" many things won't work well after restoring the session. "slash" and "unix" are useful on Windows when sharing session files with Unix. The Unix version of Vim cannot source dos format scripts, but the Windows version of Vim can source unix format scripts.

(default: "blank,buffers,curdir,folds, help,options,tabpages,winsize,terminal")

not available when compiled without the +mksession feature

type

GlobalOption<string>