Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddu_vim/deps.ts>fn.bufload

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
function fn.bufload
import { fn } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";
const { bufload } = fn;

Ensure the buffer {expr} is loaded. When the buffer name refers to an existing file then the file is read. Otherwise the buffer will be empty. If the buffer was already loaded then there is no change. If there is an existing swap file for the file of the buffer, there will be no dialog, the buffer will be loaded anyway. The {expr} argument is used like with |bufexists()|.

Parameters

denops: Denops
expr: string | number

Returns

Promise<void>