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

The Cake is a Lie - 1168 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 5
Simple text editing with Vim - 11200 entries

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

  • Best score: 13
  • Best player score: 28
  • Number of attempts: 2
Generate Fibonacci Numbers - 211 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 20
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5734 entries

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

  • Best score: 32
  • Best player score: 40
  • Number of attempts: 1
Python Hello World! Reformatting - 859 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 45
  • Number of attempts: 1
A Simple One - 860 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 3
Indentation - 420 entries

Indent each line according to the right number of spaces it needs.

  • Best score: 21
  • Best player score: 30
  • Number of attempts: 1
Whitespace, empty lines and tabs - 2733 entries

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

  • Best score: 16
  • Best player score: 31
  • Number of attempts: 1
David Shaw
Twitter:

entered into 8 challenges

contributed 0 challenges