-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
gsudo Tee hangs when used to save files from Vim #25
Comments
Does I need a working combination of Vim+Tee first, and then I'll be able to test why gsudo is hanging. |
Powershell's
|
Here's versions and configurations I'm using:
From your screen shots, it seems you've configured Vim to use PowerShell instead of CMD as shell for external commands -- however, Powershell don't have the Using CMD as Vim's shell, vim.exe hangs like this, after approving UAC prompt: Results from gvim.exe is better, as it shows the command line Vim tried to execute (also after UAC prompt): |
Executing a command like this in CMD also freezes:
Note: using only |
Try this version. This seems to fix the 'it hangs' issue. Nonetheless, I found another one while testing |
Just tested, and is working as expected now. Thank you very much for the quick fix! |
Thanks for confirming. This will be released in 0.7 |
I'm trying to reproduce the trick of saving files using sudo from a non-root vim using gsudo. However, gsudo hangs.
Here's the steps:
vim.exe
orgvim.exe
:w !gsudo tee %
Expected result: file should be save with chagnes
Actual result: command hangs
Notes
:w !tee %
(for non protected file). It works fine, which indicates that the issue is indeed on gsudoHere's some reference on how this trick works on unix/linux: https://vim.fandom.com/wiki/Su-write
The text was updated successfully, but these errors were encountered: