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

Make HTML List - 910 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 41
  • Number of attempts: 1
One number per line - 13418 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Number of attempts: 4
I forgot quotes - 12173 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 4
Order and join - 756 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 1
Shebangs for all - 1599 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 19
  • Number of attempts: 2
Sudoku table - 56 entries

Make this simple sudoku table look nice and legible.

  • Best score: 48
  • Best player score: 51
  • Number of attempts: 2
Combines all items - 244 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
Simple, Practical, and Common - 25746 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: 27
  • Number of attempts: 5
Fix the XML - 867 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 23
  • Number of attempts: 5
Fiddle percentages into real numbers - 724 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: 14
  • Number of attempts: 4
Just the middle - 9428 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 5
Pretty multi-line bash - 194 entries

Bash line continuations are much prettier when they're column aligned.

  • Best score: 15
  • Best player score: 28
  • Number of attempts: 3
Words in parens - 11183 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 2
Mute the second method of this script - 412 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
Swap values - 3628 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 17
  • Number of attempts: 1
Let's play some Ivmgolf - 923 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 1
Collect List - 3553 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 3
The Cake is a Lie - 1127 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 2
Add to end of each line... kinda - 264 entries

Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 1
Simple text editing with Vim - 10544 entries

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

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 3
V to the i - 3977 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 9608 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 3
Search and Replace 0 - 4170 entries

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

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 1
Copy three lines - 2136 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 21
  • Number of attempts: 1
Sort files from hosts - 129 entries

Resume files by host. I hope you enjoy with this challenge

  • Best score: 15
  • Best player score: 18
  • Number of attempts: 1
-a-b-c- - 2637 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 3
attr_aligner - 3040 entries

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

  • Best score: 19
  • Best player score: 31
  • Number of attempts: 1
Line 'em up! - 275 entries

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

  • Best score: 17
  • Best player score: 21
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 5527 entries

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

  • Best score: 32
  • Best player score: 44
  • Number of attempts: 2
Every other line - 2138 entries

AaAaAaA

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 2
Vice versa - 6071 entries

Little role switching.

  • Best score: 12
  • Best player score: 20
  • Number of attempts: 1
Mark Brody
Twitter:

entered into 31 challenges

contributed 0 challenges