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

Whitespace, empty lines and tabs - 2557 entries

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

  • Best score: 16
  • Best player score: 34
  • Number of attempts: 2
Space out the alphabet - 1382 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 28
  • Number of attempts: 3
Make Fancy Header - 919 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 28
  • Number of attempts: 1
Ruby 1.9 hashes - 1079 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: 12
  • Best player score: 21
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 492 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 3
Increment, increment, increment.... - 491 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
Reverse Simple Deletion - 714 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Unwrap the text of an email message - 150 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: 24
  • Number of attempts: 9
One number per line - 13381 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 5
Search and Replace 0 - 4166 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 6
Micheal Wells
Twitter:

entered into 10 challenges

contributed 0 challenges