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

Poorly indented Python comments - 553 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 29
  • Position: #55 / 103
  • Number of attempts: 15
Com(m)a Trouble - 3410 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 12
  • Position: #153 / 764
  • Number of attempts: 12
Search and Replace 0 - 4676 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #368 / 1549
  • Number of attempts: 3
Just the middle - 11141 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #69 / 4114
  • Number of attempts: 4
I forgot quotes - 15740 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1460 / 4115
  • Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #588 / 3638
  • Number of attempts: 8
attr_aligner - 3402 entries

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

  • Best score: 19
  • Best player score: 28
  • Position: #315 / 685
  • Number of attempts: 5
quotes inside quotes - 3030 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: 14
  • Best player score: 14
  • Position: #179 / 1045
  • Number of attempts: 5
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #469 / 3919
  • Number of attempts: 3
Saving the hashes(#) - 1966 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 28
  • Position: #286 / 467
  • Number of attempts: 6
Ugly spreadsheet copy/paste to CSV - 840 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 21
  • Position: #44 / 173
  • Number of attempts: 6
Insert a Markdown link - 420 entries

Put a link in a markdown document, using the after-the-paragraph format.

  • Best score: 22
  • Best player score: 24
  • Position: #62 / 141
  • Number of attempts: 2
Sort and add attributes - 1207 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Position: #187 / 489
  • Number of attempts: 5
Simple text editing with Vim - 11656 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1327 / 3418
  • Number of attempts: 1
Oli
Twitter:

Hackerpreneur.

entered into 14 challenges

contributed 0 challenges