import * as denopsStd from "https://deno.land/x/denops_std@v6.5.0/helper/expr_string.ts";
A module to provide expression string function to represents Vim's string constant.
import type { Entrypoint } from "https://deno.land/x/denops_std@v6.5.0/mod.ts";
import * as fn from "https://deno.land/x/denops_std@v6.5.0/function/mod.ts";
import {
type ExprString,
exprQuote as q,
useExprString,
} from "https://deno.land/x/denops_std@v6.5.0/helper/expr_string.ts";
export const main: Entrypoint = async (denops) => {
// Create `ExprString` value with `exprQuote`.
const vimKeySequence: ExprString = q`\<Cmd>echo 'foo'\<CR>`;
// Use `ExprString` value in `useExprString` block.
await useExprString(denops, async (denops) => {
await fn.feedkeys(denops, vimKeySequence)
await denops.cmd('echo value', { value: q`\U0001F680` })
});
}
Functions
Tagged template function that marks a string as Vim's string constant format.
Returns a | |
Returns | |
Call the denops function using Vim's string constant format. | |
Type Aliases
String that marked as Vim's string constant format. |