Good vim tutorial?

16

19

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?

Macha

Posted 2009-08-01T13:05:05.663

Reputation: 4 772

Question was closed 2012-04-29T13:59:50.660

use ":behave mswin" if you feel like its too foriegn, or, put that in your ~/.vimrc to make it do it that way, you can always put it back using ":behave xterm" if you change your mind. Furthermore, I find everyone should have at least a few mappings of their own to fine tune things, since not everyone learened to type exactly the same way, especially for those who use Dvorák keyboards or other odd layouts (me, at one point, using a modified numpad for editing numeric only documents) – osirisgothra – 2014-08-02T16:17:32.873

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 – 2009-08-14T20:29:45.193

If Vim's controls are hard, try Emacs; they'll fry your brain. – josemota – 2011-07-17T21:12:19.623

Answers

27

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).

Telemachus

Posted 2009-08-01T13:05:05.663

Reputation: 5 695

2The vim tutor is horrible; at least it's horrible at convincing you that vim is actually useful and usable by sane people. – hasen – 2009-08-11T21:09:45.947

4@hasen: as they say in the Marines, that sounds like a personal problem. – Telemachus – 2009-08-11T23:37:07.130

+1 probably the best way to start learning vim. :) – mithunsatheesh – 2014-03-10T04:36:57.190

12

hasen

Posted 2009-08-01T13:05:05.663

Reputation: 4 556

That last link is what got me in to using Vim in the first place. – naught101 – 2018-01-23T00:48:59.363

The first link is great. Thanks for that one. – Telemachus – 2009-08-12T00:10:36.580

Yup, read that first one a while ago. It's a good one :) – Svish – 2009-08-12T19:05:41.423

1The 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 – 2009-08-14T20:28:55.927

5

Stackoverflow: Vim Tutorials

Artur Carvalho

Posted 2009-08-01T13:05:05.663

Reputation: 1 617

4

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.

phuibers

Posted 2009-08-01T13:05:05.663

Reputation: 141

2

"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.

Kevin Panko

Posted 2009-08-01T13:05:05.663

Reputation: 6 339

+1, I learned Vim by reading that book on my train trips. – Atilla Filiz – 2011-01-18T13:22:11.953

2

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

saiy2k

Posted 2009-08-01T13:05:05.663

Reputation: 121

1

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

sudhang

Posted 2009-08-01T13:05:05.663

Reputation: 143

0

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.

Babu

Posted 2009-08-01T13:05:05.663

Reputation: 1 297

2Reading 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 – 2009-08-01T13:19:03.047

0

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.

juvenn

Posted 2009-08-01T13:05:05.663

Reputation: