Skip to main content
Module

x/denops_std/function/vim/mod.ts>term_setsize

📚 Standard module for denops.vim
Go to Latest
function term_setsize
import { term_setsize } from "https://deno.land/x/denops_std@v6.4.0/function/vim/mod.ts";

Set the size of terminal {buf}. The size of the window containing the terminal will also be adjusted, if possible. If {rows} or {cols} is zero or negative, that dimension is not changed.

{buf} must be the buffer number of a terminal window. Use an empty string for the current buffer. If the buffer does not exist or is not a terminal window, an error is given.

Can also be used as a method:

GetBufnr()->term_setsize(rows, cols)

Parameters

denops: Denops
buf: unknown
rows: unknown
cols: unknown

Returns

Promise<void>