From 7b686881a16a637e4e0a9e202c4b64bafc4eb8e8 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 21 Nov 2017 18:35:51 -0500 Subject: win: default grepprg to findstr.exe (#7611) --- src/nvim/options.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 52e478e78a..cb3e5ad856 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -993,11 +993,11 @@ return { expand=true, varname='p_gp', defaults={ - condition='UNIX', + condition='WIN32', -- Add an extra file name so that grep will always -- insert a file name in the match line. */ - if_true={vi="grep -n $* /dev/null"}, - if_false={vi="grep -n "}, + if_true={vi="findstr /n $* nul"}, + if_false={vi="grep -n $* /dev/null"} } }, { -- cgit