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

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

  • Best score: 16
  • Best player score: 25
  • Position: #142 / 177
  • Number of attempts: 1
Generate an entry for each month - 397 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: #39 / 101
  • Number of attempts: 2
Copy punctuation - 747 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: #175 / 183
  • Number of attempts: 2
months to html list items - 1151 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 35
  • Position: #265 / 311
  • Number of attempts: 4
Enumerate Bullets - 339 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: #65 / 93
  • Number of attempts: 1
Put a cross in the square - 256 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 24
  • Position: #81 / 95
  • Number of attempts: 2
swap number pairs - 2173 entries

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

  • Best score: 16
  • Best player score: 30
  • Position: #254 / 394
  • Number of attempts: 1
HS Final exam vimgolf - 936 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 / 245
  • Number of attempts: 6
Extend shell script - 156 entries

Just add some more stuff

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

Just add another alias to each worker

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

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

  • Best score: 9
  • Best player score: 10
  • Position: #492 / 1124
  • Number of attempts: 3
Satisfy the go linter - 2487 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: #338 / 496
  • Number of attempts: 4
xrandr outputs and dashes - 754 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 / 229
  • Number of attempts: 6
From a Thunderlink to a Markdown link - 797 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: #112 / 176
  • Number of attempts: 1
Yo To Hello - 1156 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 8
  • Position: #1 / 537
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 1161 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: #162 / 235
  • Number of attempts: 2
Simple, Practical, and Common - 34021 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: #3152 / 7517
  • Number of attempts: 7
Swap values - 4707 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #993 / 1294
  • Number of attempts: 4
prepend * to every non-blank line - 6397 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #768 / 1563
  • Number of attempts: 3
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #2037 / 3904
  • Number of attempts: 4
Quote modules - 1104 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #203 / 291
  • Number of attempts: 1
Swap values inside brackets - 2551 entries

Easy challenge.

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

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

  • Best score: 12
  • Best player score: 14
  • Position: #502 / 867
  • Number of attempts: 3
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1978 / 3098
  • Number of attempts: 2
Bad Copy Syntax - 2088 entries

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

  • Best score: 18
  • Best player score: 30
  • Position: #446 / 543
  • Number of attempts: 2
remove lines containing the word "reader" - 3652 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #876 / 1185
  • Number of attempts: 2
Com(m)a Trouble - 3993 entries

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

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

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

  • Best score: 5
  • Best player score: 6
  • Position: #399 / 452
  • Number of attempts: 1
Box it - 8003 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 28
  • Position: #1297 / 1901
  • Number of attempts: 1
Just the middle - 11620 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3235 / 4258
  • Number of attempts: 4
Basic renumbering - 5737 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 13
  • Position: #323 / 1281
  • Number of attempts: 8
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1464 / 2158
  • Number of attempts: 3
One to Ten - 2258 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: #404 / 688
  • Number of attempts: 2
Cartesian product - 277 entries

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

  • Best score: 24
  • Best player score: 33
  • Position: #56 / 102
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10758 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2533 / 3717
  • Number of attempts: 3
Words in parens - 13054 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2554 / 3991
  • Number of attempts: 1
abcd > a b c d - 309 entries

transform the single spaces into 4 spaces repeat for each line

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

Use your super vim powers to generate Fibonacci Numbers.

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

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

  • Best score: 16
  • Best player score: 19
  • Position: #43 / 101
  • Number of attempts: 6
The holy-grail may help - 405 entries

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

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

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 52
  • Position: #217 / 226
  • Number of attempts: 2
Sort and add attributes - 1598 entries

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

  • Best score: 33
  • Best player score: 34
  • Position: #418 / 617
  • Number of attempts: 1
Reconstruct the Sentence - 1754 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 / 458
  • Number of attempts: 9
Whitespace, empty lines and tabs - 4054 entries

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

  • Best score: 16
  • Best player score: 32
  • Position: #650 / 866
  • Number of attempts: 1
Flodder-challenge - 1501 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 45
  • Position: #318 / 379
  • Number of attempts: 1
Simple text editing with Vim - 13645 entries

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

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

entered into 46 challenges

contributed 0 challenges