aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/options.lua12
1 files 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',