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

Split line with dots - 2144 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 18
  • Position: #300 / 634
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 787 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #45 / 416
  • Number of attempts: 1
Just the middle - 11464 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3260 / 4202
  • Number of attempts: 1
Fiddle percentages into real numbers - 865 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 13
  • Position: #70 / 291
  • Number of attempts: 1
Nesting SASS - 266 entries

Move a block inside another block and indent it

  • Best score: 9
  • Best player score: 15
  • Position: #55 / 96
  • Number of attempts: 1
comments galore - 1045 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #221 / 424
  • Number of attempts: 2
I forgot quotes - 15997 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3113 / 4184
  • Number of attempts: 1
Do you demand a shrubbery? - 1158 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 22
  • Position: #186 / 300
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10672 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1717 / 3685
  • Number of attempts: 1
quotes inside quotes - 3165 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 15
  • Position: #411 / 1079
  • Number of attempts: 4
Words in parens - 12939 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1307 / 3964
  • 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: 10
  • Position: #67 / 193
  • Number of attempts: 3
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #796 / 1749
  • Number of attempts: 1
Ruby 1.9 hashes - 1244 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: 14
  • Position: #228 / 406
  • Number of attempts: 3
Ruby 1.9 compat - 629 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 17
  • Position: #147 / 234
  • Number of attempts: 1
Change the content of a string - 1588 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #441 / 592
  • Number of attempts: 1
Sort and add attributes - 1467 entries

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

  • Best score: 33
  • Best player score: 36
  • Position: #428 / 570
  • Number of attempts: 2
Add fold markers to a .c file - 640 entries

Fold markers can make it easier to navigate source code. Add them to this .c file.

  • Best score: 30
  • Best player score: 43
  • Position: #149 / 187
  • Number of attempts: 1
Reconstruct the Sentence - 1530 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: #299 / 417
  • Number of attempts: 3
Braces or Brackets? - 1033 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 43
  • Position: #135 / 320
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3691 entries

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

  • Best score: 16
  • Best player score: 31
  • Position: #550 / 794
  • Number of attempts: 1
Flodder-challenge - 1282 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 35
  • Position: #142 / 340
  • Number of attempts: 2
Simple text editing with Vim - 12856 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2215 / 3707
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 7023 entries

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

  • Best score: 28
  • Best player score: 39
  • Position: #726 / 1720
  • Number of attempts: 4
Mike Marion
Twitter:

entered into 24 challenges

contributed 0 challenges