Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denops_std/option/vim/mod.ts>termwinsize

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

Size used when opening the |terminal| window. Format: {rows}x{columns} or {rows}*{columns}.

  • When empty the terminal gets the size from the window.
  • When set with a "x" (e.g., "24x80") the terminal size is not adjusted to the window size. If the window is smaller only the top-left part is displayed.
  • When set with a "50") the terminal size follows the window size, but will not be smaller than the specified rows and/or columns.
  • When rows is zero then use the height of the window.
  • When columns is zero then use the width of the window.
  • Using "0x0" or "0*0" is the same as empty.
  • Can be overruled in the |term_start()| options with "term_rows" and "term_cols".

type

{ get(denops: Denops): Promise<string>; set(denops: Denops, value: string): Promise<void>; reset(denops: Denops): Promise<void>; getLocal(denops: Denops): Promise<string>; setLocal(denops: Denops, value: string): Promise<void>; resetLocal(denops: Denops): Promise<void>; }