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

Rural Post - 4526 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 13
  • Position: #548 / 1107
  • Number of attempts: 3
Satisfy the go linter - 2437 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 24
  • Position: #236 / 481
  • Number of attempts: 5
Add quotes to ansible playbook - 1001 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 9
  • Position: #110 / 316
  • Number of attempts: 3
Multiline to Single Line - 731 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #45 / 310
  • Number of attempts: 1
xrandr outputs and dashes - 716 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 16
  • Position: #189 / 224
  • Number of attempts: 1
From a Thunderlink to a Markdown link - 776 entries

ThunderLinks are durable hyperlinks to specific email messages generated from Thunderbird in HTML format. Leverage the power of vim to make them suitable for a markdown-formatted file.

  • Best score: 18
  • Best player score: 25
  • Position: #128 / 172
  • Number of attempts: 1
Yo To Hello - 1142 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #162 / 529
  • Number of attempts: 2
Replace pattern with 1, 2, 3, ... on each line - 1150 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 33
  • Position: #163 / 232
  • Number of attempts: 2
prepend * to every non-blank line - 6337 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 16
  • Position: #1050 / 1546
  • Number of attempts: 1
One number per line - 18755 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2283 / 3870
  • Number of attempts: 3
Quote modules - 1090 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 29
  • Position: #206 / 283
  • Number of attempts: 1
Add semicolons - 10881 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1518 / 3072
  • Number of attempts: 3
Bad Copy Syntax - 2044 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 24
  • Position: #372 / 530
  • Number of attempts: 1
Split line with dots - 2154 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 32
  • Position: #607 / 635
  • Number of attempts: 1
remove lines containing the word "reader" - 3604 entries

easy stuff

  • Best score: 9
  • Best player score: 11
  • Position: #932 / 1169
  • Number of attempts: 3
Com(m)a Trouble - 3875 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 19
  • Position: #635 / 876
  • Number of attempts: 1
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #943 / 1881
  • Number of attempts: 4
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 21
  • Position: #174 / 230
  • Number of attempts: 1
Two pairs of cluster of letters creates word - 749 entries

Clean and group.

  • Best score: 17
  • Best player score: 25
  • Position: #147 / 178
  • Number of attempts: 1
Copy three lines - 2875 entries

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

  • Best score: 13
  • Best player score: 26
  • Position: #581 / 641
  • Number of attempts: 2
Just the middle - 11484 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3082 / 4209
  • Number of attempts: 1
Team names - 1841 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 24
  • Position: #557 / 589
  • Number of attempts: 2
Learn some german verbs - 533 entries

The list needs to be structured so we can print in verbatim and feel ok about how it looks.

  • Best score: 21
  • Best player score: 39
  • Position: #121 / 133
  • Number of attempts: 1
Vice versa - 7945 entries

Little role switching.

  • Best score: 12
  • Best player score: 21
  • Position: #1913 / 2138
  • Number of attempts: 3
mp3 - Cutlist - 42 entries

An audio CD was accidentally ripped into one single mp3 file. A dummy cue-file now needs to be filled out with the correct values to get single mp3 files.

  • Best score: 65
  • Best player score: 201
  • Position: #14 / 14
  • Number of attempts: 1
Line under headers - 2059 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 32
  • Position: #330 / 507
  • Number of attempts: 1
Increment each number - 1025 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 48
  • Position: #242 / 249
  • Number of attempts: 1
Put the months in order - 974 entries

Our contractor thought that months should be in alphabetical order. Put them in calendar order please.

  • Best score: 20
  • Best player score: 70
  • Position: #157 / 163
  • Number of attempts: 1
I forgot quotes - 16022 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3379 / 4189
  • Number of attempts: 2
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #1032 / 1138
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10682 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2854 / 3689
  • Number of attempts: 1
attr_aligner - 3522 entries

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

  • Best score: 19
  • Best player score: 44
  • Position: #658 / 703
  • Number of attempts: 1
Words in parens - 12967 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2518 / 3969
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1606 entries

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

  • Best score: 8
  • Best player score: 14
  • Position: #381 / 446
  • Number of attempts: 1
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1251 / 1749
  • Number of attempts: 3
Shebangs for all - 2018 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: 22
  • Position: #447 / 519
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7154 entries

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

  • Best score: 28
  • Best player score: 45
  • Position: #1177 / 1754
  • Number of attempts: 4
Daniel Habib
Twitter:

entered into 37 challenges

contributed 0 challenges