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

Put a newline after every 10 lines in vim - 1681 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 13
  • Position: #363 / 565
  • Number of attempts: 1
swap number pairs - 2169 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 49
  • Position: #354 / 393
  • Number of attempts: 2
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #749 / 3898
  • Number of attempts: 1
Vice versa - 7995 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1708 / 2151
  • Number of attempts: 2
A simple change - 476 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 18
  • Position: #175 / 196
  • Number of attempts: 2
The name of the game - 679 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #269 / 364
  • Number of attempts: 2
Let's play some Ivmgolf - 1141 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Position: #131 / 453
  • Number of attempts: 7
Reformat a C golf submission - 631 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: 33
  • Position: #128 / 215
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3968 entries

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

  • Best score: 16
  • Best player score: 44
  • Position: #799 / 848
  • Number of attempts: 1
Flodder-challenge - 1458 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 42
  • Position: #288 / 372
  • Number of attempts: 5
Simple text editing with Vim - 13468 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #673 / 3865
  • Number of attempts: 9
Reformat/Refactor a Golfer Class - 7564 entries

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

  • Best score: 7
  • Best player score: 37
  • Position: #599 / 1865
  • Number of attempts: 9
Buatvimgolf
Twitter:

entered into 12 challenges

contributed 0 challenges