runtime(vimtutor): vimtutor throws Access Denied Error on MS-Windows Commit: https://github.com/vim/vim/commit/7841ca185da8cdbe53eba82f4ffdd8875968a08d Author: Christian Brabandt <c...@256bit.org> Date: Mon Jun 16 19:48:03 2025 +0200
runtime(vimtutor): vimtutor throws Access Denied Error on MS-Windows Problem: MS-Windows: vimtutor throws Access Denied Error Solution: switch the order of redirects. First redirect stdout, than stderr to stdout, Try to access $TEMP before current directory (which is usually c:\Program Files im im91\ and not writable for normal users) closes: #17550 Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/vimtutor.bat b/vimtutor.bat index 79489f50b..cd733844e 100644 --- a/vimtutor.bat +++ b/vimtutor.bat @@ -12,7 +12,7 @@ SetLocal :: When that also fails, it uses the English version. :: Use Vim to copy the tutor, it knows the value of $VIMRUNTIME -for %%G in (. %TMP% %TEMP%) do ( +for %%G in (%TMP% %TEMP% .) do ( call :TestDirWritable "%~f0" %%G if not ERRORLEVEL 1 goto DirOk ) @@ -23,7 +23,7 @@ goto End :TestDirWritable set TUTORCOPY=%2\$tutor$ -copy %1 %TUTORCOPY% 2>&1> nul +copy %1 %TUTORCOPY% >nul 2>&1 goto DelTmpCopy :DirOk -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1uRE7o-002TYK-20%40256bit.org.