Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

Played Challenges

Sorting paragraphs - 437 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 40
  • Number of attempts: 2
quotes inside quotes - 2654 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 2
  • Best player score: 14
  • Number of attempts: 5
Wrap the text of an email message to 79 characters - 478 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 8
  • Number of attempts: 3
Simple text editing with Vim - 10005 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 5363 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 45
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9166 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
Words in parens - 10462 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 5
Just the middle - 8583 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
I forgot quotes - 10391 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 7
A Simple One - 825 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 13
  • Number of attempts: 1
attr_aligner - 2802 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 14
Reverse characters in a line - 554 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 33
  • Number of attempts: 3
Change the content of a string - 1208 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 25
  • Number of attempts: 2
Search and Replace 0 - 3875 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 5
Rajit Singh
Twitter:

entered into 14 challenges

contributed 0 challenges