From 3901f5987619c5b8b476333c5a864f637a5546d9 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Tue, 12 May 2015 20:45:33 +0100 Subject: [PATCH] Windows: restore 'shell', 'shellcmdflags' defaults. #3256 - On Windows the default shell is cmd.exe and the shell flag is /c - vim-patch:0 --- src/nvim/options.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 89d49028ae..472f1bf7ac 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -2000,7 +2000,11 @@ return { vi_def=true, expand=true, varname='p_sh', - defaults={if_true={vi="sh"}} + defaults={ + condition='WIN32', + if_true={vi="cmd.exe"}, + if_false={vi="sh"} + } }, { full_name='shellcmdflag', abbreviation='shcf', @@ -2008,7 +2012,11 @@ return { secure=true, vi_def=true, varname='p_shcf', - defaults={if_true={vi="-c"}} + defaults={ + condition='WIN32', + if_true={vi="/c"}, + if_false={vi="-c"} + } }, { full_name='shellpipe', abbreviation='sp',