Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install vimtrainer.

First I did:

$ svn co vimtrainer
$ cd vimtrainer

Then made sure ruby, rubygems, rake and vim with +ruby were installed.

Then under Unpacking and installing in user_guide.txt it says I should do tar zxvf vimtrainer-?.?.?.tar.gz.

Where should I do this? I tried tar zxvf vimtrainer-0.0.1.tar.gz but I get Cannot open: No such file or directory.

share|improve this question
That would usually be for extracting the source code if you had downloaded it in an archive, a .tar.gz to be exact, which you did not. let me look closer – Karthik T Nov 22 '12 at 1:05
Thnx, here you can find the vimtrainer tree and the contents of the user_guide.txt – Bentley4 Nov 22 '12 at 1:14
Can you try just the last 2 instructions? – Karthik T Nov 22 '12 at 1:22
up vote 1 down vote accepted

Funny, that makes for a nice and short beginner level tutorial:

  1. Search-based navigation

    Because the problem is with authors, we have to search for the string authors in the rakefile. Vim's most basic search commands are / (forward search) and ? (backward search.

    Let's start by opening Rakefile with Vim:

    $ vim Rakefile

    Then we search for authors:


    <CR> is Vim's notation for the Enter key. Hmm, there's a problem: Vim can't find the string authors. Weird, let's try with author:



  2. Basic editing commands

    The problem is obviously a typo: s:author should be s:authors. That's an easy one.

    Because / left us on the first character of author, we must jump to the end of the word with:


    Then we enter insert mode after the cursor, add the missing s and go back to normal mode:

  3. Saving and quitting

    In Vim all the file management tasks are primarily done with "Ex commands" typed at the command line. From normal mode, hit : to enter "command line mode" and type the commands that you need. The command for saving your changes to the current buffer is :write or :w. Let's write the file:


    And quit:


    Or write the file and quit:


After that, follow the instructions.

Note that this thing doesn't work on my Mac: it's complaining at runtime about some missing lib while it should complain about that at build time. Bad.

share|improve this answer
Thnx! I was able to install successfully but when I ran vimtrainer-server --start I got this: /var/lib/gems/1.8/gems/vimtrainer-0.0.1/lib/vimtrainer.rb:55: undefined method 'today' for Date:Class (NoMethodError). Running vimtrainer-client returned Error detected while processing command line: NoMethodError: undefined method 'today' for Date:Class. I get there is something wrong with that indicated file but I don't know to what I should change it. Any ideas? – Bentley4 Nov 22 '12 at 22:20
Similar errors here. My opinion is that it's a poorly written program not worth the hassle. $ vimtutor is enough for the basics and using Vim daily is enough to learn how to use it anyway. – romainl Nov 23 '12 at 6:24

Can you try just the below instructions ?

cd vimtrainer
rake gem
sudo gem install pkg/vimtrainer-?.?.?.gem

replace vimtrainer-?.?.?.gem with the name of the file that is created from rake gem

share|improve this answer
What vimtrainer dir do you mean, the top dir or the one in the lib dir? Doing rake gem from the top dir gets me this: rake aborted! authors must be an Array of String instances Tasks: TOP => gem => pkg/vimtrainer-0.0.1.gem – Bentley4 Nov 22 '12 at 1:26
I would have assumed top dir.. I need to look closer yet. Can you try from lib dir itself? i.e from vimtrainer/lib/ What does Readme say? edit: readme is useless. It is still looking like top dir is the right place.. – Karthik T Nov 22 '12 at 1:35
Im not at home so I cant try myself, but if nothing else is working can you try renaming vimtrainer/Rakefile line 72 from to s.authors and try again? – Karthik T Nov 22 '12 at 1:42
1 . Yup its looking like that is the typo thats causing the issue. – Karthik T Nov 22 '12 at 1:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .