A plugin I use executes:
silent execute '%!cmd'
which fails because of a particular environment variable I have set that deliberately modifies the behaviour of
I can fix it with:
silent execute '%!ENV_VAR= cmd'
But I can't contribute that upstream because it won't work on Windows. I believe the Windows equivalent would be:
silent execute '%!set ENV_VAR= && cmd'
though I can't readily test it.
Is there a platform agnostic way of doing this, say invoking
execute with a fresh environment?