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

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

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

Dump the contents of the terminal screen of {buf} in the file {filename}. This uses a format that can be used with |term_dumpload()| and |term_dumpdiff()|. If the job in the terminal already finished an error is given: If {filename} already exists an error is given: Also see |terminal-diff|. {options} is a dictionary with these optional entries: "rows" maximum number of rows to dump "columns" maximum number of columns to dump Can also be used as a |method|, the base is used for the file name: GetFilename()->term_dumpwrite(bufnr)

Parameters

denops: Denops
buf: unknown
filename: unknown
optional
options: unknown

Returns

Promise<unknown>