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

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

  • Best score: 12
  • Best player score: 12
  • Position: #72 / 1549
  • Number of attempts: 2
Solve the Sokoban - 160 entries

A wink for all Vimgolfers that play Nethack too.

  • Best score: 25
  • Best player score: 32
  • Position: #56 / 70
  • Number of attempts: 1
Ruby 1.9 hashes - 1172 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: 14
  • Position: #186 / 386
  • Number of attempts: 1
CSV to JSON - 154 entries

A search for shortest vimissh way to convert CSV to JSON.

  • Best score: 56
  • Best player score: 83
  • Position: #18 / 61
  • Number of attempts: 1
Shebangs for all - 1777 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 12
  • Position: #67 / 468
  • Number of attempts: 2
82 bottles of beer on the wall - 287 entries

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

  • Best score: 107
  • Best player score: 143
  • Position: #97 / 134
  • Number of attempts: 1
Reverse and count - 415 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: 26
  • Position: #83 / 159
  • Number of attempts: 2
Reverse Simple Deletion - 772 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #64 / 432
  • Number of attempts: 1
Hatsuyume - 423 entries

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

  • Best score: 16
  • Best player score: 35
  • Position: #146 / 167
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3009 entries

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

  • Best score: 16
  • Best player score: 26
  • Position: #341 / 667
  • Number of attempts: 1
Simple text editing with Vim - 11657 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #1872 / 3418
  • Number of attempts: 1
Nándor Komzák
Twitter:

Ruby evangelist

entered into 11 challenges

contributed 0 challenges