Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.8.1/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>