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

fib.c cleanup - 60 entries

cleanup the file

  • Best score: 15
  • Best player score: 16
  • Position: #8 / 51
  • Number of attempts: 2
abcd > a b c d - 263 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 17
  • Position: #197 / 207
  • Number of attempts: 1
A simple change - 401 entries

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

  • Best score: 12
  • Best player score: 17
  • Position: #153 / 177
  • Number of attempts: 1
Add links to an existing HTML table - 60 entries

Add these links at that top to the respective table cell. First link, first cell, etc.

  • Best score: 42
  • Best player score: 56
  • Position: #15 / 26
  • Number of attempts: 2
lamb had a little Mary - 559 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 38
  • Position: #102 / 157
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3009 entries

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

  • Best score: 16
  • Best player score: 29
  • Position: #423 / 667
  • Number of attempts: 4
Simple text editing with Vim - 11657 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #1877 / 3418
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 6033 entries

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

  • Best score: 32
  • Best player score: 41
  • Position: #807 / 1486
  • Number of attempts: 1
Arun
Twitter:

entered into 8 challenges

contributed 0 challenges