[vim/vim] `vimtutor` failed to find `gvim.exe` when called in Windows Command Prompt (Issue #10535)

52 views
Skip to first unread message

Fan Meng (Frank)

unread,
Jun 7, 2022, 4:00:07 PM6/7/22
to vim/vim, Subscribed

Steps to reproduce

run vimtutor in Windows Command Prompt, or in Windows Terminal

the following error dialog appears:

vimtutor-error

then it opens the vim with the tutor instead

Expected behaviour

correctly open gvim.exe with the tutor, as running vimtutor from the start menu

Version of Vim

8.2.5056

Environment

OS: Windows 10.0.19044.1741
terminal: Windows Terminal 1.12.10982.0
shell: Command Prompt

another thing may be relevant:
I installed the vim using Chocolatey v1.1.0, and during installation I can see it downloaded the gvim_8.2.5056_x64.zip

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10535@github.com>

Christian Brabandt

unread,
Jun 7, 2022, 4:35:20 PM6/7/22
to vim/vim, Subscribed

is that a duplicate of #10460 ?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10535/1149140186@github.com>

Fan Meng (Frank)

unread,
Jun 8, 2022, 2:36:15 PM6/8/22
to vim/vim, Subscribed

the issue #10460 do looks similar to me,
while the problem persists even after I uninstalled the vim and redo the fresh install via Chocolatey, so I assume the problem may either in Chocolatey installation or in the vim installation package, specially: gvim_8.2.5056_x64.zip


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10535/1150258891@github.com>

Christian Brabandt

unread,
Jun 8, 2022, 4:32:05 PM6/8/22
to vim/vim, Subscribed

Cannot reproduce. I downloaded gvim_8.2.5056_x64.zip from https://github.com/vim/vim-win32-installer/releases/tag/v8.2.5056 and extracted it into a new directory. I then run cmd.exe and did clean $PATH so that current gvim installation does not interfer and then did run vimtutor.bat. Since it is in the same directory as (g)vim.exe the tutor started successfully.

So how did you install it, since it is only a zip file? Do you have another vimtutor somewhere in your path? Check where vimtutor Check your PATH settings.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10535/1150381481@github.com>

Fan Meng (Frank)

unread,
Jun 8, 2022, 5:31:15 PM6/8/22
to vim/vim, Subscribed

I installed the vim via Chocolatey:
choco install vim

Once installed, I can run program like vim, gvim or vimtutor from anywhere (not just inside the install folder),
as several batch files are automatically created inside the system folder:

  • C:\Windows\vim.bat
  • C:\Windows\gvim.bat
  • C:\Windows\vimtutor.bat
  • etc.

I can see the problem now: since vimtutor.bat only works inside the install folder, it wouldn't work when I actually run C:\Windows\vimtutor.bat

The default install folder is C:\tools\vim


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10535/1150434304@github.com>

K.Takata

unread,
Jun 8, 2022, 8:19:51 PM6/8/22
to vim/vim, Subscribed

Choco just copies vimtutor.bat from the install folder to C:\Windows, but vimtutor.bat works only when it is in the same folder as gvim.exe.
I think it is a choco issue.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10535/1150538935@github.com>

Christian Brabandt

unread,
Jun 9, 2022, 1:55:31 AM6/9/22
to vim/vim, Subscribed

Please report then at https://github.com/chocolatey-community/chocolatey-packages/issues

Closing this then.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/10535/1150701526@github.com>

Christian Brabandt

unread,
Jun 9, 2022, 1:55:34 AM6/9/22
to vim/vim, Subscribed

Closed #10535 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/10535/issue_event/6774921944@github.com>

Reply all
Reply to author
Forward
0 new messages