-
Notifications
You must be signed in to change notification settings - Fork 42
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
maktaba#syscall# doesn't work properly for Windows #215
Comments
Should be able to work around the shell override by adding call maktaba#syscall#SetUsableShellRegex('\v^/bin/sh|cmd|cmd\.exe|command\.com$') to your vimrc after maktaba is loaded, and then vim will at least try to use cmd. |
In general, we should try to detect and give a better error when the shell doesn't exist. The vim error from |
I tried firing up Wine and installing vim but I can't even figure out how to get it to invoke any shell command. I tried :set shell=cmd.exe
:echo system('dir') and a bunch of variations on that with different shell settings and I don't want to break it for anyone on Windows that somehow has it working but I can't do much for people reporting weird errors. Maybe I could soft-disable it with a meaningful warning message that tells you "If you want to try to get it working, do XYZ to enable it and then follow up on #215 to discuss how it's working for you"… |
The syscall support in maktaba tries to force
/bin/sh
when it checks if the shell value is usable, and doesn't work properly on Windows. Configuring it to allowcmd
might help, but there may be other assumptions on what syntax the shell supports that won't work properly with Windows' cmd program.When users are running into this issue, the symptom is that syscalls are failing with
E484: Can't open file C:\Users\<me>\AppData\Local\Temp\VIoFBAB.tmp
.The text was updated successfully, but these errors were encountered: