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

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

  • Best score: 12
  • Best player score: 17
  • Position: #1250 / 1603
  • Number of attempts: 2
Array transposition - 2406 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 34
  • Position: #388 / 445
  • Number of attempts: 2
Words in parens - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 21
  • Position: #3329 / 3950
  • Number of attempts: 2
Pairs of numbers - 361 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: #100 / 134
  • Number of attempts: 2
Delete unwanted lines - 398 entries

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

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

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

  • Best score: 21
  • Best player score: 33
  • Position: #689 / 748
  • Number of attempts: 2
switch variable - 5045 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1312 / 1742
  • Number of attempts: 3
Make it more readable - 1955 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 25
  • Position: #618 / 643
  • 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: 20
  • Position: #360 / 402
  • Number of attempts: 1
Fix the Haiku - 276 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: #107 / 110
  • Number of attempts: 1
Braces or Brackets? - 930 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: #170 / 295
  • Number of attempts: 1
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: 16
  • Position: #2115 / 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: 42
  • Position: #930 / 1651
  • Number of attempts: 4
matthew
Twitter:

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

entered into 13 challenges

contributed 0 challenges