I'm attempting to use powershell from gvim, and when I do...I set:
:set shellcmdflag=-NoProfile\ -NoLogo\ -ExecutionPolicy\ RemoteSigned\ -windowStyle\ Normal\ -Command :set shell='C:\\windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe' :set shellxquote=
But when I do it runs it like this:
Then I'll run a command like
!ls and get this output:
'C:\windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe' -NoProfile -NoLogo -ExecutionPolicy RemoteSigned -windowStyle Normal -Command "ls" The filename, directory name, or volume label syntax is incorrect. shell returned 1 Hit any key to close this window...
(note the quotes around the powershell path)
What variable causes those quotes to be there? It is keeping me from running my command.