Skip to main content
Module

x/denops_std/bufname/bufname.ts>format

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

Format a Bufname instance and return a safe string as Vim's buffer name.

It throws errors when scheme contains unusable characters (non-alphabet characters).

All unusable characters ("<>|?*) are replaced with percent-encoded characters. In addition to the above, all semicolons (;) and sharps (#) in path are replaced with percent-encoded characters. It's required to distinguish params and or fragment.

Returns

string