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

Solve the Sokoban - 165 entries

A wink for all Vimgolfers that play Nethack too.

  • Best score: 25
  • Best player score: 34
  • Position: #69 / 73
  • Number of attempts: 1
The holy-grail may help - 352 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 16
  • Position: #19 / 207
  • Number of attempts: 1
Ruby 1.9 hashes - 1225 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 17
  • Position: #302 / 402
  • Number of attempts: 1
82 bottles of beer on the wall - 307 entries

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

  • Best score: 106
  • Best player score: 120
  • Position: #37 / 143
  • Number of attempts: 4
Reverse and count - 459 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 33
  • Position: #133 / 174
  • Number of attempts: 1
Letters are numbers - 154 entries

Letters and numbers are interchangeable. A lot of programming languages give you simple ways to convert individual letters to hex, binary and decimal but does Vim?

  • Best score: 20
  • Best player score: 40
  • Position: #72 / 74
  • Number of attempts: 1
Hatsuyume - 466 entries

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

  • Best score: 15
  • Best player score: 28
  • Position: #109 / 178
  • Number of attempts: 1
Almost encrypted - 199 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 6
  • Position: #129 / 145
  • Number of attempts: 1
Make Fancy Header - 1024 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 23
  • Position: #273 / 340
  • Number of attempts: 1
Linear congruential generator - 132 entries

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

  • Best score: 28
  • Best player score: 31
  • Position: #30 / 51
  • Number of attempts: 1
Reformat most common surnames - 671 entries

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

  • Best score: 23
  • Best player score: 30
  • Position: #116 / 202
  • Number of attempts: 1
Reconstruct the Sentence - 1435 entries

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

  • Best score: 20
  • Best player score: 22
  • Position: #248 / 396
  • Number of attempts: 3
Simple text editing with Vim - 12480 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #768 / 3623
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6743 entries

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

  • Best score: 31
  • Best player score: 37
  • Position: #482 / 1651
  • Number of attempts: 1
kmymtksh
Twitter:

うおぽぉ!! #perl #cpan #vim #uraren

entered into 14 challenges

contributed 0 challenges