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