Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.winrestcmd

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.winrestcmd
import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { winrestcmd } = fn;

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>