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

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

  • Best score: 10
  • Best player score: 13
  • Position: #364 / 567
  • Number of attempts: 1
swap number pairs - 2173 entries

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

  • Best score: 16
  • Best player score: 49
  • Position: #355 / 394
  • Number of attempts: 2
One number per line - 18903 entries

Just give me the numbers.

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

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1711 / 2157
  • Number of attempts: 2
A simple change - 484 entries

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

  • Best score: 12
  • Best player score: 18
  • Position: #177 / 199
  • Number of attempts: 2
The name of the game - 696 entries

End up with the name of the game.

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

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Position: #131 / 459
  • Number of attempts: 7
Reformat a C golf submission - 678 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: #131 / 220
  • Number of attempts: 1
Whitespace, empty lines and tabs - 4044 entries

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

  • Best score: 16
  • Best player score: 44
  • Position: #812 / 862
  • Number of attempts: 1
Flodder-challenge - 1500 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 42
  • Position: #295 / 378
  • Number of attempts: 5
Simple text editing with Vim - 13626 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 / 3902
  • Number of attempts: 9
Reformat/Refactor a Golfer Class - 7681 entries

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

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

entered into 12 challenges

contributed 0 challenges