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

Simple, Practical, and Common - 33483 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 29
  • Position: #4581 / 7384
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 705 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #193 / 398
  • Number of attempts: 1
Basic renumbering - 5605 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 28
  • Position: #1192 / 1260
  • Number of attempts: 1
Sierpinski's Triangle - 84 entries

Build the famous fractal, Sierpinski's Triangle.

  • Best score: 25
  • Best player score: 74
  • Position: #23 / 26
  • Number of attempts: 1
VimGolfNight - 538 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #111 / 344
  • Number of attempts: 1
camel riding - 775 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 18
  • Position: #232 / 277
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10652 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1747 / 3677
  • Number of attempts: 3
attr_aligner - 3454 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 23
  • Position: #223 / 695
  • Number of attempts: 4
Letter case trickery - 1598 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 16
  • Position: #452 / 514
  • Number of attempts: 1
Untangle my tail, please! - 58 entries

You know, this words were playing to chase their tails and Oops! What happened? Now we have a complete mess, their tails are totally tangled, can you please help them to untangle their tails?

  • Best score: 16
  • Best player score: 18
  • Position: #25 / 32
  • Number of attempts: 1
Words in parens - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #102 / 3950
  • Number of attempts: 5
Block Fun 1 - 190 entries

Manipulate the columns to produce desired result.

  • Best score: 14
  • Best player score: 24
  • Position: #50 / 74
  • Number of attempts: 1
The name of the game - 654 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 13
  • Position: #329 / 359
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1594 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 10
  • Position: #258 / 443
  • Number of attempts: 3
SFD-ROC: Pipe Dreams - 102 entries

Move the pipes so they match the output.

  • Best score: 12
  • Best player score: 17
  • Position: #31 / 46
  • Number of attempts: 2
Python to Ruby - 198 entries

Convert this Python code to Ruby. NOTE: This program likely won't run.

  • Best score: 24
  • Best player score: 28
  • Position: #29 / 60
  • Number of attempts: 2
Saving the hashes(#) - 2008 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 30
  • Position: #361 / 476
  • Number of attempts: 1
Reverse and double space - 498 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 20
  • Position: #179 / 197
  • Number of attempts: 1
switch variable - 5045 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #705 / 1742
  • Number of attempts: 5
The meaning - 566 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #54 / 360
  • Number of attempts: 1
Make it more readable - 1955 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Position: #349 / 643
  • Number of attempts: 2
Numbering a List - 1869 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 24
  • Position: #470 / 646
  • Number of attempts: 2
Simple text editing with Vim - 12491 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #2514 / 3626
  • Number of attempts: 2

Contributed Challenges

Reverse and double space - 498 entries

Reverse the order of the given lines and double space everything

Mac Heller-Ogden
Twitter:

Executive Web Producer for Pixel Dreamer

entered into 23 challenges

contributed 1 challenges