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

Context insensitive completion 0 - 450 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 10
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10085 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Remember FizzBuzz? - 548 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 71
  • Number of attempts: 1
A Simple One - 852 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
  • Number of attempts: 1
That hyphen - 2376 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Number of attempts: 1
Reformat most common surnames - 537 entries

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

  • Best score: 23
  • Best player score: 44
  • Number of attempts: 1
Reverse Simple Deletion - 732 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Add fold markers to a .c file - 443 entries

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

  • Best score: 30
  • Best player score: 34
  • Number of attempts: 1
Rotating Philosophers Problem - 360 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 30
  • Number of attempts: 3
Python Hello World! Reformatting - 857 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: 50
  • Number of attempts: 1
Sort and add attributes - 1110 entries

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

  • Best score: 33
  • Best player score: 36
  • Number of attempts: 3
Numbering a List - 1760 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 25
  • Number of attempts: 1
imports alignment (python) - 583 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 17
  • Number of attempts: 2
Make Fancy Header - 928 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 18
  • Number of attempts: 1
Reformat long lines - 316 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 21
  • Number of attempts: 1
Get rid of html tags - 315 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 22
  • Number of attempts: 1
Search and Replace 0 - 4434 entries

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

  • Best score: 12
  • Best player score: 20
  • Number of attempts: 1
Minimalist Limerick - 493 entries

Reproduce this lovely poem.

  • Best score: 31
  • Best player score: 34
  • Number of attempts: 2
Flodder-challenge - 818 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 39
  • Number of attempts: 1
Braces or Brackets? - 643 entries

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

  • Best score: 34
  • Best player score: 54
  • Number of attempts: 1
Simple text editing with Vim - 11015 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 2
Change the content of a string - 1265 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Number of attempts: 2
Reformat some Python - 518 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 47
  • Number of attempts: 1
Increment, increment, increment.... - 507 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 2
Java Array2List - 216 entries

Convert an java array initializer into a list.

  • Best score: 67
  • Best player score: 119
  • Number of attempts: 1
The Cake is a Lie - 1151 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 1
Context Insensitive completion 1 - 397 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 512 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
Ruby 1.9 compat - 562 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: 19
  • Number of attempts: 2
vim = 22 / 7 - 408 entries

pi square vim

  • Best score: 20
  • Best player score: 34
  • Number of attempts: 1
Reformat a C golf submission - 488 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 39
  • Number of attempts: 1
Whitespace, empty lines and tabs - 2715 entries

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

  • Best score: 16
  • Best player score: 27
  • Number of attempts: 2
Reconstruct the Sentence - 1034 entries

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

  • Best score: 20
  • Best player score: 23
  • Number of attempts: 1
Dezső Zoltán
Twitter:

Virtual Worlds. Real Experience.

entered into 33 challenges

contributed 0 challenges