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 - 32953 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: #4782 / 7275
  • Number of attempts: 1
One number per line - 18395 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Position: #767 / 3793
  • Number of attempts: 4
Add semicolons - 10545 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #807 / 2989
  • Number of attempts: 4
Vice versa - 7535 entries

Little role switching.

  • Best score: 12
  • Best player score: 29
  • Position: #1963 / 2048
  • Number of attempts: 1
Swap assigned value - 561 entries

Simple problem but looking for interesting solutions.

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

Happy New Year!

  • Best score: 18
  • Best player score: 39
  • Position: #63 / 79
  • Number of attempts: 1
Readable Rubyhash - 239 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: #48 / 88
  • Number of attempts: 5
A simple change - 401 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #127 / 177
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3009 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #60 / 667
  • Number of attempts: 8
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: 17
  • Position: #2203 / 3418
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6033 entries

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

  • Best score: 32
  • Best player score: 36
  • Position: #410 / 1486
  • Number of attempts: 3
Ben
Twitter:

entered into 11 challenges

contributed 0 challenges