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 - 33442 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: #4577 / 7379
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 691 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #193 / 390
  • 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 - 536 entries

Based on "The name of the game".

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

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 18
  • Position: #231 / 276
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10641 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1745 / 3673
  • 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 - 1597 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: #451 / 513
  • Number of attempts: 1
Untangle my tail, please! - 57 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: #24 / 31
  • Number of attempts: 1
Words in parens - 12867 entries

We should all ace this, right?

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

Manipulate the columns to produce desired result.

  • Best score: 14
  • Best player score: 24
  • Position: #49 / 73
  • Number of attempts: 1
The name of the game - 653 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 13
  • Position: #329 / 358
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1586 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: #257 / 441
  • Number of attempts: 3
SFD-ROC: Pipe Dreams - 101 entries

Move the pipes so they match the output.

  • Best score: 12
  • Best player score: 17
  • Position: #30 / 45
  • Number of attempts: 2
Python to Ruby - 196 entries

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

  • Best score: 24
  • Best player score: 28
  • Position: #28 / 59
  • 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 - 497 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 20
  • Position: #178 / 196
  • Number of attempts: 1
switch variable - 5042 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #704 / 1739
  • Number of attempts: 5
The meaning - 565 entries

Numbers are fun!

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

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Position: #348 / 641
  • Number of attempts: 2
Numbering a List - 1863 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 24
  • Position: #467 / 643
  • Number of attempts: 2
Simple text editing with Vim - 12402 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #2499 / 3608
  • Number of attempts: 2

Contributed Challenges

Reverse and double space - 497 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