Skip to main content
Module

x/denops_std/option/mod.ts>formatprg

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

The name of an external program that will be used to format the lines selected with the |gq| operator. The program must take the input on stdin and produce the output on stdout. The Unix program "fmt" is such a program. If the 'formatexpr' option is not empty it will be used instead. Otherwise, if 'formatprg' option is an empty string, the internal format function will be used |C-indenting|. Environment variables are expanded |:set_env|. See |option-backslash| about including spaces and backslashes. This option cannot be set from a |modeline| or in the |sandbox|, for security reasons.