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

Wrap the text of an email message to 79 characters - 868 entries

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

  • Best score: 5
  • Best player score: 11
  • Position: #427 / 451
  • Number of attempts: 5
Search and Replace 0 - 5159 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #1116 / 1674
  • Number of attempts: 1
Python Hello World! Reformatting - 1048 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 42
  • Position: #84 / 398
  • Number of attempts: 1
Complete the hex array data - 215 entries

Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]

  • Best score: 23
  • Best player score: 48
  • Position: #63 / 76
  • Number of attempts: 1
A Simple One - 1091 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: 9
  • Position: #43 / 680
  • Number of attempts: 2
82 bottles of beer on the wall - 329 entries

Take them down. (sorry, only 82 bottles because the problem size is limited!)

  • Best score: 106
  • Best player score: 143
  • Position: #106 / 149
  • Number of attempts: 1
Ruby 1.9 compat - 661 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 14
  • Position: #1 / 241
  • Number of attempts: 5
Increment, increment, increment.... - 706 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #95 / 416
  • Number of attempts: 1
Sorting paragraphs - 565 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 32
  • Position: #92 / 168
  • Number of attempts: 1
The Cake is a Lie - 1418 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 10
  • Position: #299 / 543
  • Number of attempts: 1
Context insensitive completion 0 - 605 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: 10
  • Position: #220 / 255
  • Number of attempts: 1
Context Insensitive completion 1 - 532 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 48
  • Position: #248 / 252
  • Number of attempts: 1
Make Fancy Header - 1108 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 24
  • Position: #303 / 356
  • Number of attempts: 2
Reverse characters in a line - 844 entries

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

  • Best score: 8
  • Best player score: 17
  • Position: #172 / 282
  • Number of attempts: 3
Reformat most common surnames - 834 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 43
  • Position: #192 / 238
  • Number of attempts: 2
Change the content of a string - 1799 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #475 / 655
  • Number of attempts: 1
Sort and add attributes - 1591 entries

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

  • Best score: 33
  • Best player score: 36
  • Position: #453 / 615
  • Number of attempts: 2
Simple text editing with Vim - 13626 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #2985 / 3902
  • Number of attempts: 2

Contributed Challenges

Reformat some Python - 657 entries

Fix some very bizarrely laid-out code.

Tom Adams
Twitter:

WordPress wrangler at @dextrousweb. Resident git, vim, and general commandline guru. In love with @jerricurrl.

entered into 18 challenges

contributed 1 challenges