Skip to main content
Module

x/denops_std/option/mod.ts>scroll

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

Number of lines to scroll with CTRL-U and CTRL-D commands. Will be set to half the number of lines in the window when the window size changes. This may happen when enabling the status-line or 'tabline' option after setting the 'scroll' option. If you give a count to the CTRL-U or CTRL-D command it will be used as the new value for 'scroll'. Reset to half the window height with ":set scroll=0".

(default: half the window height)

type

{ get(denops: Denops): Promise<number>; set(denops: Denops, value: number): Promise<void>; reset(denops: Denops): Promise<void>; getLocal(denops: Denops): Promise<number>; setLocal(denops: Denops, value: number): Promise<void>; resetLocal(denops: Denops): Promise<void>; getBuffer(denops: Denops, bufnr: number): Promise<number>; setBuffer(
denops: Denops,
bufnr: number,
value: number,
): Promise<void>; getWindow(denops: Denops, winnr: number): Promise<number>; setWindow(
denops: Denops,
winnr: number,
value: number,
): Promise<void>; }