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

Change to ascending order - 508 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 17
  • Position: #16 / 126
  • Number of attempts: 5
Wrap the text of an email message to 79 characters - 859 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #340 / 445
  • Number of attempts: 2
Search and Replace 0 - 5103 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #754 / 1663
  • Number of attempts: 2
Vertical Limit - 2629 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 21
  • Position: #108 / 775
  • Number of attempts: 7
Hatsuyume - 557 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 15
  • Best player score: 16
  • Position: #20 / 192
  • Number of attempts: 7
Context insensitive completion 0 - 596 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 7
  • Position: #134 / 252
  • Number of attempts: 2
Change the content of a string - 1766 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #256 / 648
  • Number of attempts: 3
Sort and add attributes - 1569 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #309 / 608
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3983 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 31
  • Position: #612 / 851
  • Number of attempts: 1
Simple text editing with Vim - 13517 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #754 / 3876
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7584 entries

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

  • Best score: 7
  • Best player score: 46
  • Position: #1302 / 1872
  • Number of attempts: 4
Dmitrii Efimenko
Github:

entered into 11 challenges

contributed 0 challenges