The Computer Oracle

How to run vimtutor on windows?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Book End

--

Chapters
00:00 How To Run Vimtutor On Windows?
00:21 Accepted Answer Score 17
00:50 Answer 2 Score 0
01:05 Answer 3 Score 8
01:17 Answer 4 Score 4
02:23 Thank you

--

Full question
https://superuser.com/questions/270938/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows7 #vim #vimtutor

#avk47



ACCEPTED ANSWER

Score 17


Run gVim from the Start Menu, then File->Open

C:\Program Files\Vim\vim73\tutor\tutor

(may be different with another version or install location, it doesn't have a file extension). Save a copy of the file to My Documents using the menu.

The vimtutor command is a merely a shortcut command to do this, as well as automatically showing the correct translations if necessary. You don't need it.




ANSWER 2

Score 8


Vim 8

This script will start Vim on a copy of the tutor file!

C:\Program Files (x86)\Vim\vim80\vimtutor.bat

enter image description here




ANSWER 3

Score 4


How to run vimtutor on windows?

  • Install cygwin with vim, open a Cygwin Terminal and type vimtutor.

(That's how simple it was ever meant to be).

Explanation: I'm suggesting you should use the right tool for the job, that's why I'm "promoting" Cygwin, which is one of the best ways of having not only vim, but a whole UNIX-like environment on Windows. It is apparent from the question that you are using some graphical vim implementation, and it cannot run vimtutor without a workaround. I say it's a great opportunity of trying out something different: a collection of tools that are not only coherent among themselves, but also quite well-integrated with the host environment (Windows). This is my heartfelt suggestion, which I hope will not only enable you to run vimtutor without a hassle, but possibly give you further satisfactions once you start using it. It has given me a great many, and no problems at all over the course of years, hence my enthusiasm in sharing my experience.

P.S. In your recent comment you mention not having a Windows machine, so I guess this question is no longer relevant to you. Maybe this suggestion can be of some use to others.




ANSWER 4

Score 0


For those who prefer to launch the tutor directly, here's a simple no-frills replacement (adjust Vim install directory):

@echo off
copy "C:\program Files\Vim\vim74\tutor\tutor" "%TEMP%\tutor"
gvim -u NONE -c "set nocp" "%TEMP%\tutor"