Skip to main content
Module

x/denops_std/function/mod.ts>bufadd

📚 Standard module for denops.vim
Go to Latest
function bufadd
import { bufadd } from "https://deno.land/x/denops_std@v3.8.1/function/mod.ts";

Add a buffer to the buffer list with {name}. If a buffer for file {name} already exists, return that buffer number. Otherwise return the buffer number of the newly created buffer. When {name} is an empty string then a new buffer is always created. The buffer will not have' 'buflisted' set.

Parameters

denops: Denops
name: string

Returns

Promise<number>