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

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

  • Best score: 12
  • Best player score: 17
  • Position: #1308 / 1672
  • Number of attempts: 2
Array transposition - 2477 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 34
  • Position: #398 / 460
  • Number of attempts: 2
Words in parens - 13037 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 21
  • Position: #3361 / 3989
  • Number of attempts: 2
Pairs of numbers - 387 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: #102 / 138
  • Number of attempts: 2
Delete unwanted lines - 441 entries

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

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

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

  • Best score: 21
  • Best player score: 33
  • Position: #713 / 778
  • Number of attempts: 2
switch variable - 5121 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1328 / 1762
  • Number of attempts: 3
Make it more readable - 2036 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 25
  • Position: #632 / 657
  • Number of attempts: 1
Ruby 1.9 hashes - 1293 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: #374 / 417
  • Number of attempts: 1
Fix the Haiku - 331 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: #113 / 116
  • Number of attempts: 1
Braces or Brackets? - 1200 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: #200 / 361
  • Number of attempts: 1
Simple text editing with Vim - 13606 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2275 / 3898
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7660 entries

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

  • Best score: 7
  • Best player score: 42
  • Position: #1013 / 1886
  • Number of attempts: 4
matthew
Twitter:

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

entered into 13 challenges

contributed 0 challenges