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 - 33535 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
  • Position: #3739 / 7397
  • Number of attempts: 5
Swap values - 4606 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 17
  • Position: #1105 / 1265
  • Number of attempts: 1
One number per line - 18705 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2377 / 3855
  • Number of attempts: 5
V to the i - 4796 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1412 / 1891
  • Number of attempts: 4
Add semicolons - 10841 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1110 / 3058
  • Number of attempts: 2
remove lines containing the word "reader" - 3573 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #680 / 1157
  • Number of attempts: 1
Extract wireshark capture filter - 213 entries

Extract wireshark capture filter from IP plan

  • Best score: 25
  • Best player score: 39
  • Position: #62 / 70
  • Number of attempts: 1
Box it - 7897 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 26
  • Position: #1081 / 1872
  • Number of attempts: 1
Every other line - 2910 entries

AaAaAaA

  • Best score: 12
  • Best player score: 17
  • Position: #471 / 703
  • Number of attempts: 2
Copy three lines - 2872 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #445 / 640
  • Number of attempts: 1
Search and Replace 0 - 4952 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #993 / 1615
  • Number of attempts: 1
Just the middle - 11417 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2389 / 4181
  • Number of attempts: 5
Make HTML List - 1050 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 41
  • Position: #108 / 273
  • Number of attempts: 1
Fiddle percentages into real numbers - 862 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
  • Position: #171 / 289
  • Number of attempts: 4
Add to end of each line... kinda - 333 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
  • Position: #53 / 174
  • Number of attempts: 1
Combines all items - 313 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #115 / 140
  • Number of attempts: 1
Vice versa - 7891 entries

Little role switching.

  • Best score: 12
  • Best player score: 20
  • Position: #1841 / 2121
  • Number of attempts: 1
Pretty multi-line bash - 235 entries

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

  • Best score: 15
  • Best player score: 28
  • Position: #58 / 77
  • Number of attempts: 3
Sort files from hosts - 188 entries

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

  • Best score: 15
  • Best player score: 18
  • Position: #57 / 76
  • Number of attempts: 1
Order and join - 983 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 14
  • Position: #204 / 259
  • Number of attempts: 1
Sudoku table - 92 entries

Make this simple sudoku table look nice and legible.

  • Best score: 48
  • Best player score: 51
  • Position: #12 / 34
  • Number of attempts: 2
Collect List - 4298 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #913 / 1190
  • Number of attempts: 3
Fix the XML - 1035 entries

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

  • Best score: 18
  • Best player score: 23
  • Position: #110 / 289
  • Number of attempts: 5
Line 'em up! - 420 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
  • Position: #73 / 113
  • Number of attempts: 2
Mute the second method of this script - 455 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 10
  • Position: #200 / 239
  • Number of attempts: 2
I forgot quotes - 15954 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1608 / 4170
  • Number of attempts: 4
-a-b-c- - 3213 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #590 / 1137
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10654 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2741 / 3678
  • Number of attempts: 3
attr_aligner - 3498 entries

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

  • Best score: 19
  • Best player score: 31
  • Position: #431 / 696
  • Number of attempts: 1
Words in parens - 12918 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2270 / 3957
  • Number of attempts: 2
Let's play some Ivmgolf - 1118 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #301 / 445
  • Number of attempts: 1
Shebangs for all - 1961 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
  • Position: #400 / 506
  • Number of attempts: 2
The Cake is a Lie - 1324 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #441 / 521
  • Number of attempts: 2
Simple text editing with Vim - 12627 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2218 / 3653
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6824 entries

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

  • Best score: 28
  • Best player score: 44
  • Position: #1103 / 1673
  • Number of attempts: 2
Mark Brody
Twitter:

entered into 35 challenges

contributed 0 challenges