Skip to main content
Module

x/denops_backport/mod.ts>echomsg

Deno module in denops.vim. Corresponds to newer functions than denops_std.
Go to Latest
function echomsg
import { echomsg } from "https://deno.land/x/denops_backport@v2.0.0/mod.ts";

Echo the expression(s) as a true message, saving the message in the |message-history|. Spaces are placed between the arguments as with the :echo command. But unprintable characters are displayed, not interpreted. The parsing works slightly different from :echo, more like :execute. All the expressions are first evaluated and concatenated before echoing anything. If expressions does not evaluate to a Number or String, string() is used to turn it into a string. Uses the highlighting set by the :echohl command.

denops_backport

Only one string can be specified. If opt.highlight is specified, the highlight gourp is changed with :echohl and restored to None after execution.

Parameters

denops: Denops

Message text

message: string

Highlight group name

optional
opt: { highlight?: string; }

Returns

Promise<void>