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

Simple, Practical, and Common - 33621 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 29
  • Position: #4869 / 7422
  • Number of attempts: 1
One number per line - 18732 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Position: #789 / 3865
  • Number of attempts: 4
Add semicolons - 10859 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #835 / 3064
  • Number of attempts: 4
Vice versa - 7907 entries

Little role switching.

  • Best score: 12
  • Best player score: 29
  • Position: #2031 / 2128
  • Number of attempts: 1
Swap assigned value - 647 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #22 / 254
  • Number of attempts: 3
Change your calendar - 392 entries

Happy New Year!

  • Best score: 18
  • Best player score: 39
  • Position: #68 / 87
  • Number of attempts: 1
Readable Rubyhash - 267 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 23
  • Best player score: 28
  • Position: #50 / 95
  • Number of attempts: 5
A simple change - 461 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #138 / 191
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3670 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #80 / 788
  • Number of attempts: 8
Simple text editing with Vim - 12815 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2377 / 3696
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6984 entries

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

  • Best score: 28
  • Best player score: 36
  • Position: #438 / 1708
  • Number of attempts: 3
Ben
Twitter:

entered into 11 challenges

contributed 0 challenges