Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>op.grepprg

Dark deno-powered completion framework for neovim/Vim
Go to Latest
variable op.grepprg
import { op } from "https://deno.land/x/ddc_vim@v4.3.0/deps.ts";
const { grepprg } = op;

Program to use for the :grep command. This option may contain '%' and '#' characters, which are expanded like when used in a command- line. The placeholder "$*" is allowed to specify where the arguments will be included. Environment variables are expanded :set_env. See option-backslash about including spaces and backslashes. When your "grep" accepts the "-H" argument, use this to make ":grep" also work well with a single file:

:set grepprg=grep\ -nH

Special value: When 'grepprg' is set to "internal" the :grep command works like :vimgrep, :lgrep like :lvimgrep, :grepadd like :vimgrepadd and :lgrepadd like :lvimgrepadd. See also the section :make_makeprg, since most of the comments there apply equally to 'grepprg'. For Win32, the default is "findstr /n" if "findstr.exe" can be found, otherwise it's "grep -n". This option cannot be set from a modeline or in the sandbox, for security reasons.

(default "grep -n ", Unix: "grep -n $* /dev/null", Win32: "findstr /n" or "grep -n", VMS: "SEARCH/NUMBERS ")

type

GlobalOrLocalOption<string>