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

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

  • Best score: 12
  • Best player score: 17
  • Position: #1266 / 1620
  • Number of attempts: 2
Array transposition - 2416 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 34
  • Position: #389 / 447
  • Number of attempts: 2
Words in parens - 12928 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 21
  • Position: #3339 / 3960
  • Number of attempts: 2
Pairs of numbers - 363 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 / 136
  • Number of attempts: 2
Delete unwanted lines - 408 entries

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

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

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

  • Best score: 21
  • Best player score: 33
  • Position: #695 / 754
  • Number of attempts: 2
switch variable - 5068 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1314 / 1747
  • Number of attempts: 3
Make it more readable - 1988 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 25
  • Position: #622 / 647
  • Number of attempts: 1
Ruby 1.9 hashes - 1239 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: #363 / 405
  • Number of attempts: 1
Fix the Haiku - 293 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: #109 / 112
  • Number of attempts: 1
Braces or Brackets? - 964 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: #175 / 310
  • Number of attempts: 1
Simple text editing with Vim - 12712 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2148 / 3671
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6901 entries

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

  • Best score: 28
  • Best player score: 42
  • Position: #943 / 1690
  • Number of attempts: 4
matthew
Twitter:

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

entered into 13 challenges

contributed 0 challenges