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

x/denops_std/function/nvim/mod.ts>nvim_create_buf

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

Creates a new, empty, unnamed buffer. Parameters: ~ {listed} Sets 'buflisted' {scratch} Creates a "throwaway" |scratch-buffer| for temporary work (always 'nomodified'). Also sets 'nomodeline' on the buffer. Return: ~ Buffer handle, or 0 on error See also: ~ buf_open_scratch

Parameters

denops: Denops
listed: unknown
scratch: unknown

Returns

Promise<unknown>