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 - 426 entries

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

  • Best score: 16
  • Best player score: 25
  • Position: #121 / 154
  • Number of attempts: 1
Generate an entry for each month - 369 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: #38 / 91
  • Number of attempts: 2
Copy punctuation - 682 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: #159 / 166
  • Number of attempts: 2
months to html list items - 1130 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 35
  • Position: #260 / 306
  • Number of attempts: 4
Enumerate Bullets - 337 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: #63 / 91
  • Number of attempts: 1
Put a cross in the square - 243 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 24
  • Position: #79 / 93
  • Number of attempts: 2
swap number pairs - 2168 entries

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

  • Best score: 16
  • Best player score: 30
  • Position: #253 / 392
  • Number of attempts: 1
HS Final exam vimgolf - 933 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: #88 / 244
  • Number of attempts: 6
Extend shell script - 155 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 53
  • Position: #29 / 49
  • Number of attempts: 2
Easy modification of ssh config - 397 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 26
  • Position: #54 / 116
  • Number of attempts: 4
Rural Post - 4579 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #490 / 1117
  • Number of attempts: 3
Satisfy the go linter - 2476 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: #336 / 492
  • Number of attempts: 4
xrandr outputs and dashes - 730 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 / 227
  • Number of attempts: 6
From a Thunderlink to a Markdown link - 796 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: #111 / 175
  • Number of attempts: 1
Yo To Hello - 1154 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 8
  • Position: #1 / 535
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 1158 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: #161 / 234
  • Number of attempts: 2
Simple, Practical, and Common - 33929 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: #3145 / 7489
  • Number of attempts: 7
Swap values - 4667 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #988 / 1284
  • Number of attempts: 4
prepend * to every non-blank line - 6380 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #767 / 1557
  • Number of attempts: 3
One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #2031 / 3893
  • Number of attempts: 4
Quote modules - 1099 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #201 / 287
  • Number of attempts: 1
Swap values inside brackets - 2539 entries

Easy challenge.

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

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

  • Best score: 12
  • Best player score: 14
  • Position: #500 / 864
  • Number of attempts: 3
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1969 / 3087
  • Number of attempts: 2
Bad Copy Syntax - 2072 entries

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

  • Best score: 18
  • Best player score: 30
  • Position: #443 / 539
  • Number of attempts: 2
remove lines containing the word "reader" - 3631 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #874 / 1179
  • Number of attempts: 2
Com(m)a Trouble - 3968 entries

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

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

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

  • Best score: 5
  • Best player score: 6
  • Position: #390 / 441
  • Number of attempts: 1
Box it - 7987 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 28
  • Position: #1294 / 1895
  • Number of attempts: 1
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3231 / 4234
  • Number of attempts: 4
Basic renumbering - 5707 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 13
  • Position: #318 / 1274
  • Number of attempts: 8
Vice versa - 7981 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1459 / 2147
  • Number of attempts: 3
One to Ten - 2243 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: #402 / 683
  • Number of attempts: 2
Cartesian product - 267 entries

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

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2527 / 3703
  • Number of attempts: 3
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2547 / 3979
  • Number of attempts: 1
abcd > a b c d - 299 entries

transform the single spaces into 4 spaces repeat for each line

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

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 23
  • Position: #66 / 106
  • 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 - 391 entries

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

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

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 52
  • Position: #215 / 223
  • Number of attempts: 2
Sort and add attributes - 1557 entries

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

  • Best score: 33
  • Best player score: 34
  • Position: #409 / 601
  • Number of attempts: 1
Reconstruct the Sentence - 1697 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 / 445
  • Number of attempts: 9
Whitespace, empty lines and tabs - 3949 entries

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

  • Best score: 16
  • Best player score: 32
  • Position: #634 / 841
  • Number of attempts: 1
Flodder-challenge - 1443 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 45
  • Position: #307 / 369
  • Number of attempts: 1
Simple text editing with Vim - 13416 entries

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

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

entered into 46 challenges

contributed 0 challenges