Skip to main content
Module

x/denops_std/option/mod.ts>makeprg

📚 Standard module for denops.vim
Go to Latest
variable makeprg
import { makeprg } from "https://deno.land/x/denops_std@v4.3.1/option/mod.ts";

Program to use for the ":make" command. See :make_makeprg. This option may contain '%' and '#' characters (see :_% and :_#), which are expanded to the current and alternate file name. Use ::S to escape file names in case they contain special characters. Environment variables are expanded :set_env. See option-backslash about including spaces and backslashes. Note that a '|' must be escaped twice: once for ":set" and once for the interpretation of a command. When you use a filter called "myfilter" do it like this:

:set makeprg=gmake\ \\\|\ myfilter

The placeholder "$*" can be given (even multiple times) to specify where the arguments will be included, for example:

:set makeprg=latex\ \\\\nonstopmode\ \\\\input\\{$*}

This option cannot be set from a modeline or in the sandbox, for security reasons.

(default "make", VMS: "MMS")

type

{ get(denops: Denops): Promise<string>; set(denops: Denops, value: string): Promise<void>; reset(denops: Denops): Promise<void>; getGlobal(denops: Denops): Promise<string>; setGlobal(denops: Denops, value: string): Promise<void>; resetGlobal(denops: Denops): Promise<void>; getLocal(denops: Denops): Promise<string>; setLocal(denops: Denops, value: string): Promise<void>; resetLocal(denops: Denops): Promise<void>; getBuffer(denops: Denops, bufnr: number): Promise<string>; setBuffer(
denops: Denops,
bufnr: number,
value: string,
): Promise<void>; getWindow(denops: Denops, winnr: number): Promise<string>; setWindow(
denops: Denops,
winnr: number,
value: string,
): Promise<void>; }