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

Wrap the text of an email message to 79 characters - 576 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #152 / 352
  • Number of attempts: 2
Swap assigned value - 556 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 17
  • Position: #224 / 235
  • Number of attempts: 1
Enumerate words - 232 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 25
  • Position: #15 / 84
  • Number of attempts: 6
abcd > a b c d - 260 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #55 / 204
  • Number of attempts: 1
Checkerboard case pattern - 130 entries

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

  • Best score: 15
  • Best player score: 27
  • Position: #50 / 53
  • Number of attempts: 1
lamb had a little Mary - 559 entries

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

  • Best score: 16
  • Best player score: 38
  • Position: #108 / 157
  • Number of attempts: 1
Unwrap the text of an email message - 172 entries

Reverse of "Wrap the text of an email message to 79 characters". gq and gw are great for wrapping paragraphs. But sometimes other programs choke on your wrapped lines. What's the best way to un-gq?

  • Best score: 16
  • Best player score: 25
  • Position: #52 / 68
  • Number of attempts: 2
SFD-ROC: ROT13 Phonics - 79 entries

A is for apple, b is for ball, etc... This familiar phonics poem has been rotated 13 characters. Make the letter match the word.

  • Best score: 6
  • Best player score: 6
  • Position: #35 / 64
  • Number of attempts: 2
Vertical Limit - 2367 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 30
  • Position: #623 / 716
  • Number of attempts: 1
Change the content of a string - 1346 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 26
  • Position: #356 / 520
  • Number of attempts: 2
Whitespace, empty lines and tabs - 2979 entries

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

  • Best score: 16
  • Best player score: 31
  • Position: #463 / 663
  • Number of attempts: 2
Flodder-challenge - 901 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 30
  • Position: #64 / 270
  • Number of attempts: 3
Simple text editing with Vim - 11624 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2197 / 3410
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6004 entries

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

  • Best score: 32
  • Best player score: 42
  • Position: #875 / 1480
  • Number of attempts: 1
XGOLFER
Twitter:

entered into 14 challenges

contributed 0 challenges