import * as denopsStd from "https://deno.land/x/denops_std@v6.5.1/helper/mod.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.1/mod.ts";
import * as fn from "https://deno.land/x/denops_std@v6.5.1/function/mod.ts";
import {
type ExprString,
exprQuote as q,
useExprString,
} from "https://deno.land/x/denops_std@v6.5.1/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
f echo | Echo message as like |
Echo message as an error message. | |
Ensure global silent status during given function | |
Execute multi-lined Vim script directly | |
Tagged template function that marks a string as Vim's string constant format.
Returns a | |
Call given function and print a friendly error message (without stack trace) on failure. | |
Get global silent status | |
Open a prompt to get user input. | |
Returns | |
f load | Load a Vim script in a local/remote URL |
f send | Send key sequences synchronously.
|
Set global silent status | |
Call the denops function using Vim's string constant format. | |
Type Aliases
String that marked as Vim's string constant format. | |
T Keys | |