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 - 34021 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: #4914 / 7517
  • Number of attempts: 1
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Position: #795 / 3904
  • Number of attempts: 4
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #848 / 3098
  • Number of attempts: 4
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 29
  • Position: #2057 / 2158
  • Number of attempts: 1
Swap assigned value - 695 entries

Simple problem but looking for interesting solutions.

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

Happy New Year!

  • Best score: 18
  • Best player score: 39
  • Position: #70 / 89
  • Number of attempts: 1
Readable Rubyhash - 285 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: #52 / 98
  • Number of attempts: 5
A simple change - 484 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #143 / 199
  • Number of attempts: 1
Whitespace, empty lines and tabs - 4054 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #90 / 866
  • Number of attempts: 8
Simple text editing with Vim - 13645 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2501 / 3907
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 7694 entries

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

  • Best score: 7
  • Best player score: 36
  • Position: #470 / 1893
  • Number of attempts: 3
Ben
Twitter:

entered into 11 challenges

contributed 0 challenges