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 - 158 entries

A wink for all Vimgolfers that play Nethack too.

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

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

  • Best score: 16
  • Best player score: 16
  • Position: #19 / 190
  • Number of attempts: 1
Ruby 1.9 hashes - 1113 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: #280 / 372
  • Number of attempts: 1
82 bottles of beer on the wall - 280 entries

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

  • Best score: 107
  • Best player score: 120
  • Position: #34 / 131
  • Number of attempts: 4
Reverse and count - 403 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: #118 / 153
  • Number of attempts: 1
Letters are numbers - 127 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: #64 / 66
  • Number of attempts: 1
Hatsuyume - 368 entries

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

  • Best score: 16
  • Best player score: 28
  • Position: #88 / 154
  • Number of attempts: 1
Almost encrypted - 177 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 6
  • Position: #119 / 133
  • Number of attempts: 1
Make Fancy Header - 929 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 23
  • Position: #255 / 313
  • Number of attempts: 1
Linear congruential generator - 108 entries

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

  • Best score: 28
  • Best player score: 31
  • Position: #27 / 46
  • Number of attempts: 1
Reformat most common surnames - 546 entries

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

  • Best score: 23
  • Best player score: 30
  • Position: #97 / 173
  • Number of attempts: 1
Reconstruct the Sentence - 1066 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: #200 / 330
  • Number of attempts: 3
Simple text editing with Vim - 11387 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #708 / 3346
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5835 entries

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

  • Best score: 32
  • Best player score: 37
  • Position: #448 / 1442
  • Number of attempts: 1
kmymtksh
Twitter:

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

entered into 14 challenges

contributed 0 challenges