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

Quicksort - 1757 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 6
  • Position: #76 / 385
  • Number of attempts: 1
Populate 3D bone names list - 525 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 26
  • Position: #57 / 141
  • Number of attempts: 1
Find fix point of cos - 1204 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #79 / 365
  • Number of attempts: 1
Surround the 'z' character with brackets, quotes, and print as formatted string. - 507 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 18
  • Position: #226 / 287
  • Number of attempts: 2
Paste a column after a column - 2413 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 16
  • Position: #129 / 523
  • Number of attempts: 2
Filter number combinations that don't add to 11 - 379 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 28
  • Position: #64 / 112
  • Number of attempts: 2
HS exam question - 1523 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 50
  • Position: #61 / 404
  • Number of attempts: 4
Fizzbuzz - 539 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 78
  • Position: #85 / 162
  • Number of attempts: 3
Substraction (bis) - 582 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 21
  • Best player score: 35
  • Position: #74 / 110
  • Number of attempts: 2
Poorly indented Python comments - 1275 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 15
  • Position: #7 / 213
  • Number of attempts: 6
Many duplicates - 1350 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #78 / 440
  • Number of attempts: 1
delete swap - 1650 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #43 / 514
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1649 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #51 / 551
  • Number of attempts: 3
Java to JavaScript - 267 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 67
  • Position: #19 / 72
  • Number of attempts: 3
Wikitext headings to markdown - 985 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 23
  • Position: #92 / 207
  • Number of attempts: 1
hello-world-vimgolf - 2472 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #339 / 699
  • Number of attempts: 1
Contribute to keyboard mashing - 880 entries

Speak in tongues

  • Best score: 17
  • Best player score: 19
  • Position: #133 / 268
  • Number of attempts: 3
Reordering Lorem Ipsum - 265 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 14
  • Position: #25 / 64
  • Number of attempts: 4
Fill in the chess board - 933 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 22
  • Position: #53 / 180
  • Number of attempts: 8
Learn to ask for :help - 572 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 27
  • Position: #55 / 128
  • Number of attempts: 4
Plotting some variables in python - 1605 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 41
  • Position: #126 / 345
  • Number of attempts: 3
Transpose a python matrix - 848 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 40
  • Position: #65 / 135
  • Number of attempts: 1
Lowercase first characters - 484 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 37
  • Position: #78 / 181
  • Number of attempts: 1
Migrated to Postgres! - 324 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 29
  • Position: #50 / 126
  • Number of attempts: 2
simple replacements - 1710 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #119 / 378
  • Number of attempts: 5
Inverting Lines - 1870 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #109 / 505
  • Number of attempts: 3
Generate a very basic Python constructor - 315 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 39
  • Position: #25 / 97
  • Number of attempts: 9
Python dataclasses - 1121 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 20
  • Position: #90 / 281
  • Number of attempts: 1
RUST Cargo.toml version to last - 332 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 25
  • Position: #79 / 99
  • Number of attempts: 2
Making 3 line function a one liner. - 312 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #51 / 200
  • Number of attempts: 1
Modernise code - 1368 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 37
  • Position: #110 / 316
  • Number of attempts: 4
Staircase - 146 entries

Going downstairs, while singing the alphabet song. Some vb practice to us all. Would it be much easier to make it go from left to right instead?

  • Best score: 21
  • Best player score: 35
  • Position: #21 / 33
  • Number of attempts: 2
Enumerate Bullets - 309 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: 20
  • Best player score: 24
  • Position: #33 / 83
  • Number of attempts: 2
Put a cross in the square - 210 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #55 / 87
  • Number of attempts: 3
swap number pairs - 2023 entries

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

  • Best score: 16
  • Best player score: 22
  • Position: #150 / 373
  • Number of attempts: 6
HS Final exam vimgolf - 892 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #141 / 234
  • Number of attempts: 1
Easy modification of ssh config - 348 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 28
  • Position: #57 / 108
  • Number of attempts: 2
Change double quotes to single quotes, but with a twist - 291 entries

Although this challenge is in the context of a Python function, you don't need to know Python to do this challenge. It is to add contexts and interesting constraints. The file contains a function that prints a multi-line string literal. I wrote the string literal with double quotes, but then I decided to use single quotes instead, and that's your challenge. However, interestingly enough, the string itself contains single and double quotes. This means, inside the string literal, the originally escaped double quotes no longer need to be escaped, but the single quotes now need to be escaped. Note that the triple double quotes in the docstring should be left alone.

  • Best score: 22
  • Best player score: 35
  • Position: #35 / 55
  • Number of attempts: 4
C to python code snippet - 82 entries

C code can be easily translated into Python code. However, the difference in syntax can make this process tedious and time-consuming. Can Vim help you here?

  • Best score: 48
  • Best player score: 53
  • Position: #13 / 29
  • Number of attempts: 4
Mr. Hacker - 83 entries

Elvin is hacker. He has piece of users database from some social net site. Recently he installed Vim, and he wants to convert CSV DB to specific format `key=value' where `key' is login and `value' is password, but password in DB is encrypted in ROT13. Help him.

  • Best score: 19
  • Best player score: 21
  • Position: #28 / 34
  • Number of attempts: 1
Python: Def to Lambda - 441 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 20
  • Position: #99 / 154
  • Number of attempts: 2
Turn the x - 317 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 21
  • Position: #42 / 80
  • Number of attempts: 2
Format the CSS - 137 entries

You just copied some CSS color names from the web and need to add them to your python module. Create the COLORS variable and assign a dict() with the names as keys and hex-colors as values. BEWARE OF THE TABS!!

  • Best score: 41
  • Best player score: 44
  • Position: #21 / 46
  • Number of attempts: 3
Rural Post - 4427 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #429 / 1086
  • Number of attempts: 3
Levenshtein distance - 105 entries

Compute distance for each pair. Notice that this recursive implementation is very inefficient. Wagner-Fischer algorithm is iterative and much faster. #vimscript

  • Best score: 27
  • Best player score: 30
  • Position: #8 / 37
  • Number of attempts: 4
Satisfy the go linter - 2360 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: 21
  • Position: #178 / 465
  • Number of attempts: 2
Add quotes to ansible playbook - 946 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #24 / 302
  • Number of attempts: 4
Multiline to Single Line - 680 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #153 / 298
  • Number of attempts: 1
Data reformat - 286 entries

Reformat this copy-paste data! #csv

  • Best score: 36
  • Best player score: 42
  • Position: #24 / 63
  • Number of attempts: 4
xrandr outputs and dashes - 671 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: #119 / 218
  • Number of attempts: 1
From a Thunderlink to a Markdown link - 757 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: 24
  • Position: #121 / 168
  • Number of attempts: 2
Capitalize the Names - 382 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 25
  • Position: #53 / 95
  • Number of attempts: 3
Yo To Hello - 1127 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #284 / 522
  • Number of attempts: 2
Replace pattern with 1, 2, 3, ... on each line - 1114 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: #155 / 228
  • Number of attempts: 2
Simple, Practical, and Common - 33483 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: 23
  • Position: #2776 / 7384
  • Number of attempts: 3
Hogwarts Email Sorting - 891 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 22
  • Position: #157 / 257
  • Number of attempts: 1
prepend * to every non-blank line - 6254 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #639 / 1530
  • Number of attempts: 2
One number per line - 18673 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #739 / 3852
  • Number of attempts: 4
Quote modules - 1066 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 25
  • Position: #131 / 278
  • Number of attempts: 3
Unsemantic linewrapping - 901 entries

[Inspired by a blog post I read: https://scott.mn/2014/02/21/semantic_linewrapping/. Text adapted.] Sometimes when editing a Markdown file, I wrap the lines semantically. Instead of inserting a newline at 70 columns (or whatever), or making paragraphs one long line, I put in newlines at a point that seems logical to me. This may seem silly, but it produces better diffs. Semantic linewrapping also makes editing snappier. I can delete, edit or insert sentences easily using linewise operations. Code-oriented text editors like Vim and [REDACTED] are really good at this kind of manipulation. Editing text that hasn't been wrapped semantically is a pain, though:

  • Best score: 9
  • Best player score: 13
  • Position: #189 / 226
  • Number of attempts: 1
V to the i - 4771 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1479 / 1887
  • Number of attempts: 1
Applying same text modification in several lines - 2851 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #468 / 843
  • Number of attempts: 2
Add semicolons - 10831 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1573 / 3055
  • Number of attempts: 1
remove lines containing the word "reader" - 3556 entries

easy stuff

  • Best score: 9
  • Best player score: 11
  • Position: #922 / 1151
  • Number of attempts: 3
Box it - 7849 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 36
  • Position: #1654 / 1870
  • Number of attempts: 1
multiple cursor alternative - 1488 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 23
  • Position: #278 / 378
  • Number of attempts: 3
From argument to object - 1481 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 18
  • Position: #262 / 453
  • Number of attempts: 2
Copy three lines - 2869 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #274 / 639
  • Number of attempts: 2
Search and Replace 0 - 4853 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #657 / 1605
  • Number of attempts: 3
Just the middle - 11380 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3166 / 4174
  • Number of attempts: 2
Team names - 1812 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Position: #398 / 585
  • Number of attempts: 1
Interweave two blocks of text - 641 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 16
  • Position: #60 / 212
  • Number of attempts: 4
Subnetting - 112 entries

Split up the IP addresses in the right way.

  • Best score: 29
  • Best player score: 34
  • Position: #20 / 37
  • Number of attempts: 6
Python Hello World! Reformatting - 955 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 43
  • Position: #183 / 371
  • Number of attempts: 1
Basic renumbering - 5605 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #237 / 1260
  • Number of attempts: 1
Adam's challenge - 958 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 22
  • Position: #194 / 267
  • Number of attempts: 1
sort python functions and methods alphabetically - 23 entries

* sort functions in the python file alphabetically * sort functions within a Class alphabetically * sort Classes alphabetically

  • Best score: 20
  • Best player score: 23
  • Position: #8 / 14
  • Number of attempts: 1
Create a table - 332 entries

Convert the given input into a formatted table

  • Best score: 16
  • Best player score: 18
  • Position: #71 / 105
  • Number of attempts: 2
Wrap text in quotes - 351 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 22
  • Position: #103 / 121
  • Number of attempts: 2
ninja substitution - 1399 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 15
  • Position: #136 / 265
  • Number of attempts: 4
Vice versa - 7865 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1668 / 2114
  • Number of attempts: 1
Paragraph sort - 431 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 17
  • Position: #72 / 124
  • Number of attempts: 3
SQL to YAML - 47 entries

Should be easy with vim, or not?

  • Best score: 71
  • Best player score: 86
  • Position: #12 / 21
  • Number of attempts: 2
Order and join - 965 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Position: #132 / 258
  • Number of attempts: 2
Increment each number - 995 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 22
  • Position: #188 / 245
  • Number of attempts: 2
Around the clock - 191 entries

You'll want to use 2 special commands to complete this. If you haven't yet, read through 'input.txt', especially :help simple-changes

  • Best score: 13
  • Best player score: 14
  • Position: #51 / 76
  • Number of attempts: 2
Join 'em - 251 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #132 / 151
  • Number of attempts: 1
Array transposition - 2407 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 26
  • Position: #316 / 445
  • Number of attempts: 1
From A to B - 575 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 17
  • Position: #97 / 157
  • Number of attempts: 6
Rail fence transposition cipher - 71 entries

Solve a rail fence transposition cipher using vim. This ciphertext was created using two rails. Use vim to transpose the text and recover the original quote.

  • Best score: 14
  • Best player score: 15
  • Position: #10 / 25
  • Number of attempts: 7
Land of the Lost - 79 entries

Enter the tabs below the lyrics

  • Best score: 25
  • Best player score: 32
  • Position: #7 / 31
  • Number of attempts: 5
readability - 315 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 19
  • Position: #131 / 150
  • Number of attempts: 6
Interleave lines - 159 entries

This is some kind of « paste -d'\n' c b a ». There are many ways to achieve this.. just find the shortest!

  • Best score: 17
  • Best player score: 18
  • Position: #11 / 59
  • Number of attempts: 6
Logging with key - 302 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 23
  • Position: #35 / 87
  • Number of attempts: 4
Space out the alphabet - 1630 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 22
  • Position: #338 / 442
  • Number of attempts: 1
remove all lines in first part - 197 entries

From the second part, remove all lines in the first part. It can be useful when you have done something from a long list, you want to know what is not done yet!

  • Best score: 13
  • Best player score: 15
  • Position: #33 / 66
  • Number of attempts: 3
Not enough Ps - 67 entries

Different type of code

  • Best score: 13
  • Best player score: 13
  • Position: #26 / 36
  • Number of attempts: 4
Merge blank lines and properly capitalize - 82 entries

Here you need complete 2 tasks: 1. Remove all unwanted continuous blank lines and leave only 1 blank line between paragraphs. 2. Properly capitalize the sentences.

  • Best score: 21
  • Best player score: 23
  • Position: #11 / 24
  • Number of attempts: 8
Fill visual area - 83 entries

Just have fun!

  • Best score: 20
  • Best player score: 34
  • Position: #16 / 37
  • Number of attempts: 4
Fix the XML - 1000 entries

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

  • Best score: 18
  • Best player score: 22
  • Position: #98 / 287
  • Number of attempts: 3
Shuffled numbers - 237 entries

Each number is paired with the number it should follow. That's enough information to put them in order.

  • Best score: 15
  • Best player score: 17
  • Position: #80 / 95
  • Number of attempts: 2
Mute the second method of this script - 449 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #143 / 238
  • Number of attempts: 1
Remove hard line breaks - 68 entries

Text files with Hard breaks are not good for e-readers. We need remove all hard line breaks and have long lines.

  • Best score: 10
  • Best player score: 17
  • Position: #25 / 33
  • Number of attempts: 8
Winning streak - 125 entries

Make the number on each line equal the consecutive L's or W's.

  • Best score: 21
  • Best player score: 26
  • Position: #23 / 50
  • Number of attempts: 8
Sorting database text output - 220 entries

Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data. In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list. What is the fewest strokes you can do this in?

  • Best score: 24
  • Best player score: 25
  • Position: #54 / 82
  • Number of attempts: 1
Happy TvvO - 417 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 14
  • Position: #194 / 204
  • Number of attempts: 1
I forgot quotes - 15946 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1998 / 4166
  • Number of attempts: 2
Subtraction - 179 entries

Solve the equations.

  • Best score: 18
  • Best player score: 27
  • Position: #43 / 62
  • Number of attempts: 4
-a-b-c- - 3183 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Position: #412 / 1132
  • Number of attempts: 2
Suffix sort - 255 entries

Sort from the end of the line, as if the letters in each line were reversed.

  • Best score: 19
  • Best player score: 27
  • Position: #46 / 66
  • Number of attempts: 1
120 Degrees - 469 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 14
  • Position: #33 / 144
  • Number of attempts: 8
Comparing scores - 95 entries

If Alice and Bob both did the challenge, put their entries together in the top paragraph, so we can compare their scores more easily.

  • Best score: 18
  • Best player score: 22
  • Position: #17 / 34
  • Number of attempts: 5
Do you demand a shrubbery? - 1136 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 16
  • Position: #97 / 298
  • Number of attempts: 7
Where should I put the Newline? - 874 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #403 / 436
  • Number of attempts: 1
Sort the VimGolf challenges by popularity - 346 entries

"Sort by popularity" is a good order to play the challenges. Not perfect, but you could do a lot worse. ;) Input is a sample copy-pasted from vimgolf.com. Some of the challenge names have digits that will get in your way, so read ":help :sort" for hints on sorting with a regex. When you're done, try your solution on the full list!

  • Best score: 15
  • Best player score: 16
  • Position: #61 / 106
  • Number of attempts: 2
Words in parens - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1835 / 3950
  • Number of attempts: 2
It's a factor - 92 entries

Flaunt your macro prowess by factoring some numbers. Too hard? It takes less than 30 strokes, I promise.

  • Best score: 24
  • Best player score: 65
  • Position: #22 / 37
  • Number of attempts: 5
Fibonacci Triangles - 50 entries

Triangles

  • Best score: 40
  • Best player score: 45
  • Position: #11 / 21
  • Number of attempts: 6
Circle of Fifths with Sharps - 97 entries

Display a list of the Circle of Fifths with corresponding solfege syllables with sharps. Handling spaces may be tricky.

  • Best score: 24
  • Best player score: 24
  • Position: #10 / 37
  • Number of attempts: 4
Dehamlizing - 184 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 34
  • Position: #9 / 71
  • Number of attempts: 5
NATO phonetic alphabet - 506 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 20
  • Position: #57 / 194
  • Number of attempts: 4
The name of the game - 654 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #260 / 359
  • Number of attempts: 3
maximun and minimun - 59 entries

Find the maximum and minimum of the rows.

  • Best score: 50
  • Best player score: 96
  • Position: #24 / 25
  • Number of attempts: 2
Vertical Limit - 2487 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 26
  • Position: #495 / 748
  • Number of attempts: 1
Make the circuit grid! - 91 entries

Copy this command for a circuit layout program to create 10 total smd commands. Increment the number in quotes to name each pad, and add 0.7 to each of the (X Y) coordinates at the end of each line.

  • Best score: 26
  • Best player score: 26
  • Position: #28 / 49
  • Number of attempts: 2
switch variable - 5045 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #983 / 1742
  • Number of attempts: 2
Multiplication table. - 206 entries

Create a multiplication table.

  • Best score: 31
  • Best player score: 41
  • Position: #6 / 64
  • Number of attempts: 7
Alphabetize the directory - 284 entries

Put the contacts and their information in alphabetical order.

  • Best score: 30
  • Best player score: 31
  • Position: #24 / 100
  • Number of attempts: 6
Case preserving word replacement - 454 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 20
  • Position: #79 / 180
  • Number of attempts: 8
Numbering a List - 1869 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #64 / 646
  • Number of attempts: 1
Table Reshuffle - 372 entries

Fix the column order in this table... also append the new 'username' column.

  • Best score: 22
  • Best player score: 24
  • Position: #39 / 135
  • Number of attempts: 2
Increment, increment, increment.... - 668 entries

Vim likes macros

  • Best score: 10
  • Best player score: 11
  • Position: #72 / 404
  • Number of attempts: 1
Hatsuyume - 467 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 15
  • Best player score: 18
  • Position: #22 / 179
  • Number of attempts: 1
Context insensitive completion 0 - 545 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 7
  • Position: #111 / 239
  • Number of attempts: 1
mevmev
Twitter:

entered into 134 challenges

contributed 0 challenges