Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell of Windows is not supported #82

Open
chrisniael opened this issue Feb 23, 2022 · 0 comments
Open

PowerShell of Windows is not supported #82

chrisniael opened this issue Feb 23, 2022 · 0 comments

Comments

@chrisniael
Copy link

I set PowerShell as the default shell of vim in Windows

if has("win32")
  let &shell='pwsh'
  let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;'
  let &shellredir = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode'
  let &shellpipe = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode'
  set shellquote= shellxquote=
endif

My task.ini config

[gen-pb]
command=.\gen_pb.bat
cwd=$(VIM_ROOT)\tools
output=terminal
save=1

The task is to run $(VIM_ROOT)\toos\gen_pb.bat

Output:

cd /D "C:\Users\shenyu\Documents\work\superWarServer\game\tools"
Set-Location: A positional parameter cannot be found that accepts argument 'C:\Users\shenyu\Documents\work\superWarServer\game\tools'.

I'm guessing cd /D is a CMD command, not PowerShell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant