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

Search and Replace 0 - 5162 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #130 / 1675
  • Number of attempts: 5
Python Hello World! Reformatting - 1052 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: #110 / 400
  • Number of attempts: 5
Exchanging Quotes - 878 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 32
  • Position: #55 / 234
  • Number of attempts: 5
replacing each line of a block selection - 3068 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 18
  • Position: #21 / 789
  • Number of attempts: 10
Reverse and double space - 511 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 14
  • Position: #15 / 202
  • Number of attempts: 3
un-C-escape string - 63 entries

Convert escape sequences to characters

  • Best score: 12
  • Best player score: 12
  • Position: #17 / 55
  • Number of attempts: 1
The meaning - 588 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #31 / 368
  • Number of attempts: 1
PHP <--> Java class conversion Part 1 - 258 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 113
  • Position: #43 / 64
  • Number of attempts: 1
formatted text to markdown - 193 entries

You're converting some posts from an old blog to markdown. The formatted text is far closer to the finished product than the html markup, so it seems like a good place to start. Word wrapping seems to be the main area for optimization.

  • Best score: 70
  • Best player score: 76
  • Position: #28 / 69
  • Number of attempts: 2
Line Zipper - 480 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 16
  • Position: #135 / 217
  • Number of attempts: 1
Context Insensitive completion 1 - 533 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #73 / 252
  • Number of attempts: 3
Get rid of html tags - 465 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 12
  • Best player score: 26
  • Position: #237 / 262
  • Number of attempts: 1
Change the content of a string - 1803 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #54 / 656
  • Number of attempts: 3
Sort and add attributes - 1598 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #74 / 617
  • Number of attempts: 3
Reconstruct the Sentence - 1754 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 20
  • Position: #44 / 458
  • Number of attempts: 3
Braces or Brackets? - 1209 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 50
  • Position: #258 / 365
  • Number of attempts: 1
Whitespace, empty lines and tabs - 4054 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #219 / 866
  • Number of attempts: 4
Flodder-challenge - 1501 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 35
  • Position: #163 / 379
  • Number of attempts: 4
Simple text editing with Vim - 13645 entries

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

  • Best score: 13
  • Best player score: 33
  • Position: #3631 / 3907
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7694 entries

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

  • Best score: 7
  • Best player score: 37
  • Position: #542 / 1893
  • Number of attempts: 3
Neil
Twitter:

entered into 20 challenges

contributed 0 challenges