Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>winrestcmd

๐Ÿ“š Standard module for denops.vim
Go to Latest
function winrestcmd
import { winrestcmd } from "https://deno.land/x/denops_std@v5.0.2/function/mod.ts";

Returns a sequence of :resize commands that should restore the current window sizes. Only works properly when no windows are opened or closed and the current window and tab page is unchanged. Example:

:let cmd = winrestcmd()
:call MessWithWindowSizes()
:exe cmd

Returns

Promise<string>