Skip to main content
Module

x/denops_std/function/buffer.ts>swapname

📚 Standard module for denops.vim
Go to Latest
function swapname
import { swapname } from "https://deno.land/x/denops_std@v6.4.0/function/buffer.ts";

The result is the swap file path of the buffer {expr}. For the use of {buf}, see bufname() above. If buffer {buf} is the current buffer, the result is equal to :swapname (unless there is no swap file). If buffer {buf} has no swap file, returns an empty string.

Can also be used as a method:

GetBufname()->swapname()

Returns

Promise<string>