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

Swap columns and transform to CSV format - 295 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 25
  • Position: #91 / 110
  • Number of attempts: 1
Generate an entry for each month - 229 entries

The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years

  • Best score: 27
  • Best player score: 40
  • Position: #25 / 64
  • Number of attempts: 2
Copy punctuation - 574 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 108
  • Position: #139 / 145
  • Number of attempts: 2
months to html list items - 1088 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 35
  • Position: #251 / 295
  • Number of attempts: 4
Enumerate Bullets - 327 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 18
  • Best player score: 36
  • Position: #61 / 89
  • Number of attempts: 1
Put a cross in the square - 235 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 24
  • Position: #78 / 92
  • Number of attempts: 2
swap number pairs - 2125 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 30
  • Position: #249 / 386
  • Number of attempts: 1
HS Final exam vimgolf - 906 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 22
  • Position: #87 / 239
  • Number of attempts: 6
Extend shell script - 137 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 53
  • Position: #27 / 47
  • Number of attempts: 2
Easy modification of ssh config - 382 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 26
  • Position: #53 / 115
  • Number of attempts: 4
Rural Post - 4563 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #489 / 1113
  • Number of attempts: 3
Satisfy the go linter - 2448 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: 27
  • Position: #331 / 484
  • Number of attempts: 4
xrandr outputs and dashes - 724 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: 12
  • Position: #154 / 225
  • Number of attempts: 6
From a Thunderlink to a Markdown link - 779 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: 22
  • Position: #110 / 173
  • Number of attempts: 1
Yo To Hello - 1151 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 8
  • Position: #1 / 533
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 1151 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: 31
  • Position: #160 / 233
  • Number of attempts: 2
Simple, Practical, and Common - 33757 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: 24
  • Position: #3132 / 7450
  • Number of attempts: 7
Swap values - 4644 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #986 / 1275
  • Number of attempts: 4
prepend * to every non-blank line - 6358 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #765 / 1551
  • Number of attempts: 3
One number per line - 18780 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #2026 / 3877
  • Number of attempts: 4
Quote modules - 1094 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #200 / 285
  • Number of attempts: 1
Swap values inside brackets - 2515 entries

Easy challenge.

  • Best score: 13
  • Best player score: 14
  • Position: #112 / 584
  • Number of attempts: 4
Applying same text modification in several lines - 2900 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 14
  • Position: #498 / 859
  • Number of attempts: 3
Add semicolons - 10889 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1963 / 3076
  • Number of attempts: 2
Bad Copy Syntax - 2050 entries

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

  • Best score: 18
  • Best player score: 30
  • Position: #438 / 533
  • Number of attempts: 2
remove lines containing the word "reader" - 3610 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #869 / 1172
  • Number of attempts: 2
Com(m)a Trouble - 3890 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #524 / 882
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 814 entries

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

  • Best score: 5
  • Best player score: 6
  • Position: #377 / 426
  • Number of attempts: 1
Box it - 7939 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 28
  • Position: #1290 / 1885
  • Number of attempts: 1
Just the middle - 11500 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3225 / 4216
  • Number of attempts: 4
Basic renumbering - 5685 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 13
  • Position: #315 / 1270
  • Number of attempts: 8
Vice versa - 7968 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1458 / 2144
  • Number of attempts: 3
One to Ten - 2234 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 13
  • Position: #400 / 679
  • Number of attempts: 2
Cartesian product - 266 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 33
  • Position: #55 / 99
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10699 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2522 / 3695
  • Number of attempts: 3
Words in parens - 12969 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2542 / 3970
  • Number of attempts: 1
abcd > a b c d - 298 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #209 / 227
  • Number of attempts: 2
Generate Fibonacci Numbers - 289 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 23
  • Position: #65 / 102
  • Number of attempts: 7
It'ss tooo coold too typpe todaay - 230 entries

My hands are numb with cold. It's hard to type correctly.

  • Best score: 16
  • Best player score: 19
  • Position: #41 / 99
  • Number of attempts: 6
The holy-grail may help - 389 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 16
  • Position: #165 / 215
  • Number of attempts: 5
Assignment Alignment - 885 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 52
  • Position: #213 / 221
  • Number of attempts: 2
Sort and add attributes - 1499 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 34
  • Position: #400 / 581
  • Number of attempts: 1
Reconstruct the Sentence - 1647 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 19
  • Position: #5 / 433
  • Number of attempts: 9
Whitespace, empty lines and tabs - 3793 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 32
  • Position: #612 / 814
  • Number of attempts: 1
Flodder-challenge - 1369 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 45
  • Position: #296 / 352
  • Number of attempts: 1
Simple text editing with Vim - 13092 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2055 / 3765
  • Number of attempts: 4
UrbanNinja1010
Github:

entered into 46 challenges

contributed 0 challenges