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

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

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

Set the command to write in a session file to restore the job in this terminal. The line written in the session file is: terminal ++curwin ++cols=%d ++rows=%d {command} Make sure to escape the command properly. Use an empty {command} to run 'shell'. Use "NONE" to not restore this window. Can also be used as a |method|: GetBufnr()->term_setrestore(command)

Parameters

denops: Denops
buf: unknown
command: unknown

Returns

Promise<unknown>