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
gVim in windows(10): external command cannot keep current work directory #5104
Comments
Does it happen when you execute Vim with |
Have you tried the build from vim/vim-win32-installer? |
I've just download the latest release from https://github.com/vim/vim-win32-installer/releases I also try maybe this is bug where fixed in neovim? |
I suspect that this is caused by your settings or plugins. Please try with |
I've try it, it not the reason. |
Ah, I'm not aware that you edited the comment. |
I'v try many cases and will summarize some report: After read As I have no privilege to delete the AutoRun registry, I first try to change the vim option ** Summary option setting: set shellcmdflag=/d\ /c
set noshelltemp and disable vimrun.exe ** Conclusion / Suggestion It is tricky |
_Instructions: I switch to work in windows, find this problem that different from in linux.
Describe the bug
When execute external command, include
:!cmd
,:call system('cmd')
and:terminal
,the current directory is always jump to
c:\windows\system32
To Reproduce
Detailed steps to reproduce the behavior:
gvim c:\users\me\_vimrc
(or open gvim to edit any plain file):!dir
will list lost of file inc:\windows\system32
c:\windows\system32
:!global -pq' cannot find the GTAGS of my project, also output
c:\windows\system32`Expected behavior
External command should keep current directory, as in linux do.
Environment (please complete the following information):
**Addition:
set shell=powershell
, not solved eitherThe text was updated successfully, but these errors were encountered: