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

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

  • Best score: 12
  • Best player score: 17
  • Position: #1275 / 1631
  • Number of attempts: 2
Array transposition - 2427 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 34
  • Position: #390 / 450
  • Number of attempts: 2
Words in parens - 12969 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 21
  • Position: #3348 / 3970
  • Number of attempts: 2
Pairs of numbers - 364 entries

Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"

  • Best score: 26
  • Best player score: 44
  • Position: #101 / 137
  • Number of attempts: 2
Delete unwanted lines - 431 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #46 / 234
  • Number of attempts: 1
Vertical Limit - 2564 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 33
  • Position: #698 / 759
  • Number of attempts: 2
switch variable - 5085 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1317 / 1750
  • Number of attempts: 3
Make it more readable - 2009 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 25
  • Position: #627 / 652
  • Number of attempts: 1
Ruby 1.9 hashes - 1258 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: 20
  • Position: #367 / 409
  • Number of attempts: 1
Fix the Haiku - 320 entries

Change this slightly scrambled haiku to its unscrambled form and fix the capitalisation and punctuation along the way.

  • Best score: 28
  • Best player score: 63
  • Position: #112 / 115
  • Number of attempts: 1
Braces or Brackets? - 1073 entries

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

  • Best score: 34
  • Best player score: 47
  • Position: #185 / 331
  • Number of attempts: 1
Simple text editing with Vim - 13092 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2202 / 3765
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7228 entries

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

  • Best score: 10
  • Best player score: 42
  • Position: #967 / 1777
  • Number of attempts: 4
matthew
Twitter:

Christian, Husband, Father, Software Engineer at @UnionMetrics. Also enjoys good coffee.

entered into 13 challenges

contributed 0 challenges