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

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

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

When exiting Vim or trying to close the terminal window in another way, {how} defines whether the job in the terminal can be stopped. When {how} is empty (the default), the job will not be stopped, trying to exit will result in |E947|. Otherwise, {how} specifies what signal to send to the job. See |job_stop()| for the values. After sending the signal Vim will wait for up to a second to check that the job actually stopped. Can also be used as a |method|: GetBufnr()->term_setkill(how)

Parameters

denops: Denops
buf: unknown
how: unknown

Returns

Promise<unknown>