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

Block Fun 1 - 160 entries

Manipulate the columns to produce desired result.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 1
fib.c cleanup - 58 entries

cleanup the file

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 1
Harder than "abcd > a b c d" - 64 entries

Not as easy as the last challenge. This time, just one space between a and b, up to 25 spaces between y and z. (Removed some lines; diff was too long.)

  • Best score: 15
  • Best player score: 27
  • Number of attempts: 2
abcd > a b c d - 248 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 2
lamb had a little Mary - 537 entries

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

  • Best score: 16
  • Best player score: 36
  • Number of attempts: 3
Python: Lots of function arguments - 73 entries

The function definition is too long for one line. The modeline helps you with some typical Python indent settings.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 1
Checkerboard case pattern - 127 entries

All the squares are white. Make some of them black. But only the right ones.

  • Best score: 15
  • Best player score: 51
  • Number of attempts: 2
Readable Rubyhash - 233 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: 104
  • Number of attempts: 1
Chris Maguire
Twitter:

Christian, husband, dad, Clojure fan

entered into 8 challenges

contributed 0 challenges