How to use vimtutor?

40

6

Someone recommended me that I should use vimtutor to learn the basics of vim. But I have no idea how to use it. Is it an application? A website?

This is the only link that was given during the discussion here and I can't find a link to anything.

Any suggestions?

Sergio Tapia

Posted 2011-02-15T23:42:27.030

Reputation:

Answers

61

Yes, vimtutor is literally the name of a program that runs you through a tutorial for vim. If installed on a Unix environment, that command should be sufficient. On windows, there's an entry in the start menu folder just titled "Vim tutor" which is a shortcut for vimtutor

Daniel DiPaolo

Posted 2011-02-15T23:42:27.030

Reputation: 863

:help vimtutor describes a few tricks as well – Grant Bowman – 2016-08-03T17:14:54.947

On windows you can open the file C:\Program Files (x86)\Vim\vim81\tutor\tutor (from https://superuser.com/questions/270938/how-to-run-vimtutor-on-windows/271076#271076 )

– Stefan – 2018-07-11T20:16:06.147

So I guess my question is, how do I even install it? There is no link on the website. – None – 2011-02-16T00:02:26.497

14It comes with Vim. If you've installed Vim successfully, you've installed vimtutor as well. – Daniel DiPaolo – 2011-02-16T00:04:29.537

2

vimtutor is a program that usually gets installed when you install the normal vim/gvim package. You should be able to just run "vimtutor" on the command line, assuming that it got built and installed correctly, and is on your path, etc... If you can't run it on the command line, or it doesn't work for you, you'll have to do some digging to figure out why. In my experience vimtutor doesn't always work as expected. I would start by looking in the install folder for Vim, and see what you can find.

At its core, it's basically just a text file that has some examples that walk you through the basic commands available in vim. It shows you have to navigate using the keyboard, how to edit text, and use some other basic commands. If you can't get vimtutor to work immediately, you can either just keep messing with it, do some more searching (there are plenty of results when you search for vimtutor in google) or just give up on it and learn vim using another type of tutorial. Vimtutor is fairly limited anyway, so it's definitely not that important to get working.

Andy White

Posted 2011-02-15T23:42:27.030

Reputation: 141

0

The vimtutor exists in dozens of languages; some may use a three-letter language code, e.g. Bavarian: vimtutor bar

Josef Hell

Posted 2011-02-15T23:42:27.030

Reputation: 9

0

How have you installed Vim?

Some packages will not include vimtutor; eg vim-tiny on Debian GNU/Linux does not include the program as it's probably not considered a core part of a minimal vim distribution. :-)

You didn't say what platform you are on but based on the link you referenced, I at least assume some Linux distribution.

argetek

Posted 2011-02-15T23:42:27.030

Reputation:

-1

Type:

yum install vim

even if you have vim already installed.
This will install additional files including the "vimtutor".

Alynx

Posted 2011-02-15T23:42:27.030

Reputation: 1