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

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

  • Best score: 12
  • Best player score: 12
  • Position: #90 / 1550
  • Number of attempts: 3
Cartesian product - 217 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 37
  • Position: #65 / 91
  • Number of attempts: 3
Reformat some Python - 565 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 50
  • Position: #170 / 223
  • Number of attempts: 2
Reformat a C golf submission - 536 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 44
  • Position: #176 / 195
  • Number of attempts: 2
Reverse characters in a line - 645 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 30
  • Position: #214 / 236
  • Number of attempts: 1
Change the content of a string - 1354 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 24
  • Position: #282 / 522
  • Number of attempts: 2
Add fold markers to a .c file - 493 entries

Fold markers can make it easier to navigate source code. Add them to this .c file.

  • Best score: 30
  • Best player score: 47
  • Position: #130 / 158
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3012 entries

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

  • Best score: 16
  • Best player score: 28
  • Position: #394 / 668
  • Number of attempts: 3
Flodder-challenge - 927 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 43
  • Position: #222 / 273
  • Number of attempts: 1
Simple text editing with Vim - 11662 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #763 / 3419
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 6035 entries

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

  • Best score: 32
  • Best player score: 39
  • Position: #621 / 1487
  • Number of attempts: 5
Nick
Twitter:

entered into 11 challenges

contributed 0 challenges