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

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

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

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

  • Best score: 24
  • Best player score: 37
  • Position: #73 / 102
  • Number of attempts: 3
Reformat some Python - 659 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 50
  • Position: #190 / 248
  • Number of attempts: 2
Reformat a C golf submission - 681 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: #200 / 222
  • Number of attempts: 2
Reverse characters in a line - 845 entries

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

  • Best score: 8
  • Best player score: 30
  • Position: #254 / 283
  • Number of attempts: 1
Change the content of a string - 1803 entries

This docstring is a complete lie. Fix it.

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

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

  • Best score: 27
  • Best player score: 47
  • Position: #169 / 203
  • Number of attempts: 1
Whitespace, empty lines and tabs - 4054 entries

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

  • Best score: 16
  • Best player score: 28
  • Position: #517 / 866
  • Number of attempts: 3
Flodder-challenge - 1501 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 43
  • Position: #300 / 379
  • Number of attempts: 1
Simple text editing with Vim - 13645 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #869 / 3907
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7694 entries

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

  • Best score: 7
  • Best player score: 39
  • Position: #729 / 1893
  • Number of attempts: 5
Nick
Twitter:

entered into 11 challenges

contributed 0 challenges