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

One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Position: #2605 / 3889
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 846 entries

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

  • Best score: 5
  • Best player score: 6
  • Position: #365 / 437
  • Number of attempts: 1
That hyphen - 2602 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 17
  • Position: #640 / 704
  • Number of attempts: 2
Python Hello World! Reformatting - 1007 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 42
  • Position: #114 / 384
  • Number of attempts: 5
Change your calendar - 397 entries

Happy New Year!

  • Best score: 18
  • Best player score: 35
  • Position: #54 / 88
  • Number of attempts: 4
Logging with key - 328 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 33
  • Position: #58 / 88
  • Number of attempts: 3
Subtraction - 180 entries

Solve the equations.

  • Best score: 18
  • Best player score: 83
  • Position: #62 / 62
  • Number of attempts: 2
Don't know what this is - 2025 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 15
  • Position: #385 / 587
  • Number of attempts: 1
Words in parens - 12992 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #1970 / 3977
  • Number of attempts: 2
The Quick Brown Fox Jumps Over The Lazy Vim - 425 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 11
  • Position: #109 / 193
  • Number of attempts: 3
The name of the game - 678 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #16 / 363
  • Number of attempts: 1
Vertical Limit - 2596 entries

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

  • Best score: 21
  • Best player score: 26
  • Position: #440 / 767
  • Number of attempts: 2
replacing each line of a block selection - 3007 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 20
  • Position: #244 / 780
  • Number of attempts: 6
Switch function arguments - 2182 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 14
  • Position: #451 / 674
  • Number of attempts: 2
A Simple One - 1067 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #278 / 671
  • Number of attempts: 1
Make Fancy Header - 1075 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 18
  • Position: #232 / 349
  • Number of attempts: 7
Reformat most common surnames - 782 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 40
  • Position: #174 / 227
  • Number of attempts: 5
Remember FizzBuzz? - 758 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 70
  • Position: #154 / 200
  • Number of attempts: 2
Change the content of a string - 1707 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #289 / 628
  • Number of attempts: 6
Sort and add attributes - 1539 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Position: #109 / 594
  • Number of attempts: 2
Reconstruct the Sentence - 1677 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 24
  • Position: #317 / 440
  • Number of attempts: 1
Flodder-challenge - 1401 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 35
  • Position: #157 / 358
  • Number of attempts: 4
Simple text editing with Vim - 13262 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2427 / 3810
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 7389 entries

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

  • Best score: 7
  • Best player score: 35
  • Position: #353 / 1825
  • Number of attempts: 6
Dan Oneata
Twitter:

entered into 24 challenges

contributed 0 challenges