Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've constantly heard good things about vim, and now I'm intrigued. The only thing that's putting me off is it's irregular keyboard controls. Does anyone know of any good beginners tutorials for vim?

share|improve this question

closed as not constructive by random Apr 29 '12 at 13:59

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

    
I think you'll find, with a bit of experience, that the keyboard controls are wonderful, especially on laptops. You can navigate and edit your entire document without leaving home row and using a mouse. –  J. Polfer Aug 14 '09 at 20:29
    
If Vim's controls are hard, try Emacs; they'll fry your brain. –  josemota Jul 17 '11 at 21:12
add comment

10 Answers

up vote 25 down vote accepted

Vim comes with its own tutorial, for a start. Just run this in a terminal:

vimtutor

The good thing about vimtutor is that it allows you to read about how the editor works while actually using it.

Beyond that, you can take a look at the links here: Vi Lovers page

The nice thing about that page is that it briefly discusses the various links it provides, so you get a sense of which are better or worse and why.

I would add that the best way to get comfortable with Vim is to use it exclusively for a bit. If you end up hating it, fine. Use something else then. However, the only way to train your fingers and brain is to use it. My fingers now do Escape :wq out of habit, even when I'm in a gui email client at work (instead of Mutt).

share|improve this answer
1  
The vim tutor is horrible; at least it's horrible at convincing you that vim is actually useful and usable by sane people. –  hasenj Aug 11 '09 at 21:09
4  
@hasen: as they say in the Marines, that sounds like a personal problem. –  Telemachus Aug 11 '09 at 23:37
    
+1 probably the best way to start learning vim. :) –  mithunsatheesh Mar 10 at 4:36
add comment
share|improve this answer
    
The first link is great. Thanks for that one. –  Telemachus Aug 12 '09 at 0:10
    
Yup, read that first one a while ago. It's a good one :) –  Svish Aug 12 '09 at 19:05
1  
The Cheat Sheet Tutorial is how I learned vi. Seriously. I printed out the cheat sheets, put them in front of my keyboard, forced myself to type "gvim" when editing my files, and referred to them as I wanted to do various things. I spent about two weeks per cheat sheet, and got the hang of it. –  J. Polfer Aug 14 '09 at 20:28
add comment

Stackoverflow: Vim Tutorials

share|improve this answer
add comment

I found the instructional videos by Derek Wyatt on Vimeo to be very useful. He has uploaded 27 videos, starting with basic editing and describing more advanced features later on.

share|improve this answer
add comment

"A Byte of Vim" is a book which aims to help you to learn how to use the Vim editor, even if all you know is how to use the computer keyboard.

share|improve this answer
    
+1, I learned Vim by reading that book on my train trips. –  Atilla Filiz Jan 18 '11 at 13:22
add comment

Check this VIM game, its plain awesome: http://vim-adventures.com/

It's the "Zelda meets text editing" game. Beat the game to master VIM. I finished 2 levels, 3rd under development it seems.

Also check this. Its good: http://www.openvim.com/tutorial.html

share|improve this answer
add comment

I think vim recipes is a good to-the-point book.

share|improve this answer
add comment

I'd start off with the manual page (man vim), but I can see why you wouldn't want to read through the entire thing.

As such, this came up in a quick google search. It covers some of the more important points, although there are probably more in-depth tutorials.

share|improve this answer
2  
Reading the manual page for Vim is nearly zero help for a beginner, since it primarily talks about opening Vim on the command line. Vim's own internal Help is very good, but even that is not a sane way to learn the editor initially. In this case, doing beats reading. Read a short tutorial and edit with it, or use the vimtutor program to do both at once. –  Telemachus Aug 1 '09 at 13:19
add comment

The best way I know to learn vim is by watching the vi / vim video tutorial

share|improve this answer
add comment

In your terminal:

$ vim

Then in your opened vim buffer:

:set syntax=on  
:help

When you get familiar with the touch type, you need some customizations to beautify it, like a beautiful color scheme, and an elegant font. Feel free to download my setup at GitHub.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.