Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/function/vim/mod.ts>remote_foreground

📚 Standard module for denops.vim
Go to Latest
function remote_foreground
import { remote_foreground } from "https://deno.land/x/denops_std@v5.1.0/function/vim/mod.ts";

Move the Vim server with the name {server} to the foreground. The {server} argument is a string, also see {server}. This works like:

remote_expr({server}, "foreground()")

Except that on Win32 systems the client does the work, to work around the problem that the OS doesn't always allow the server to bring itself to the foreground. Note: This does not restore the window if it was minimized, like foreground() does. This function is not available in the sandbox.

Can also be used as a method:

ServerName()->remote_foreground()

only in the Win32, Motif and GTK GUI versions and the Win32 console version

Parameters

denops: Denops
server: unknown

Returns

Promise<number>