Skip to main content
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@v6.4.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<void>