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

Case matching substitution - 16 entries

Swap every "lorem" for "ipsum", keeping the letter cases the same.

  • Best score: 31
  • Best player score: 37
  • Position: #2 / 6
  • Number of attempts: 4
Define Gray code states - 11 entries

List the states using Gray code and assign Gray code values to each state.

  • Best score: 61
  • Best player score: 61
  • Position: #1 / 5
  • Number of attempts: 4
Hex to binary - 37 entries

Convert hexadecimal numbers into binary format.

  • Best score: 33
  • Best player score: 33
  • Position: #2 / 11
  • Number of attempts: 4
Count words - 30 entries

Merge duplicates and count each word.

  • Best score: 39
  • Best player score: 41
  • Position: #4 / 7
  • Number of attempts: 7
String decompression - 12 entries

3a4b2c => aaabbbbcc. Start a new line when you exceed 79 columns.

  • Best score: 27
  • Best player score: 27
  • Position: #2 / 5
  • Number of attempts: 1
Reverse even lines - 20 entries

Reverse only the even lines without altering the odd lines.

  • Best score: 7
  • Best player score: 7
  • Position: #1 / 8
  • Number of attempts: 3
Format a long line - 32 entries

Reformat long lines (gq), textwidth=78, no trailing spaces.

  • Best score: 17
  • Best player score: 17
  • Position: #3 / 14
  • Number of attempts: 2
Evil Numbers - 49 entries

Print the first 100 evil numbers https://oeis.org/A001969. This is an advert for code.golf https://code.golf/evil-numbers#viml

  • Best score: 25
  • Best player score: 36
  • Position: #4 / 16
  • Number of attempts: 3
Mirror image - 39 entries

Add the second eye

  • Best score: 15
  • Best player score: 15
  • Position: #1 / 20
  • Number of attempts: 1
Find anomalies - 75 entries

There is one special character per line

  • Best score: 30
  • Best player score: 30
  • Position: #4 / 21
  • Number of attempts: 2
Coordinate extraction - 46 entries

Get the coordinates of all "M"s from the Vim logo

  • Best score: 43
  • Best player score: 43
  • Position: #5 / 13
  • Number of attempts: 4
Morse - 85 entries

Translate Morse code to Text

  • Best score: 31
  • Best player score: 32
  • Position: #3 / 20
  • Number of attempts: 9
New teacher - 472 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 20
  • Position: #10 / 110
  • Number of attempts: 1
Truth Table to ModelSim - 41 entries

Convert this truth table to simulator instructions!

  • Best score: 64
  • Best player score: 80
  • Position: #5 / 14
  • Number of attempts: 2
Replace word while reserving first letter case - 425 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 24
  • Position: #18 / 98
  • Number of attempts: 2
months to html list items - 752 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 24
  • Position: #72 / 206
  • Number of attempts: 5
Instance creation in Verilog - 34 entries

Creating an instance of a module is a very frequent task in Verilog. Let's see how efficiently can it be done

  • Best score: 107
  • Best player score: 192
  • Position: #7 / 8
  • Number of attempts: 1
Quicksort - 1676 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: #114 / 369
  • Number of attempts: 1
EDN reformat - 1085 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #68 / 151
  • Number of attempts: 13
Tic-Tac-Toe Grid Transformation - 326 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 56
  • Best player score: 94
  • Position: #24 / 79
  • Number of attempts: 5
Populate 3D bone names list - 488 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #41 / 133
  • Number of attempts: 8
Remove line numbers - 617 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 12
  • Best player score: 12
  • Position: #59 / 166
  • Number of attempts: 1
Find fix point of cos - 1169 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: #208 / 355
  • Number of attempts: 1
Surround the 'z' character with brackets, quotes, and print as formatted string. - 497 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #199 / 281
  • Number of attempts: 1
Easier Align - 357 entries

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 57
  • Position: #6 / 92
  • Number of attempts: 21
Paste a column after a column - 2367 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #98 / 514
  • Number of attempts: 1
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: 27
  • Position: #42 / 112
  • Number of attempts: 4
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 47
  • Position: #21 / 401
  • Number of attempts: 1
Reformat symbols in list - 1482 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 25
  • Position: #99 / 328
  • Number of attempts: 7
Fizzbuzz - 534 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 48
  • Position: #26 / 160
  • Number of attempts: 12
Substraction (bis) - 580 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #20 / 109
  • Number of attempts: 11
Poorly indented Python comments - 1257 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #50 / 210
  • Number of attempts: 2
Many duplicates - 1304 entries

Quick and easy

  • Best score: 6
  • Best player score: 7
  • Position: #41 / 427
  • Number of attempts: 4
delete swap - 1606 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #322 / 502
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1214 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 29
  • Position: #64 / 254
  • Number of attempts: 1
Visual block training - 1041 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 17
  • Position: #12 / 192
  • Number of attempts: 1
Innocent Monster - 165 entries

You have the tools, just create him!

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

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

  • Best score: 10
  • Best player score: 10
  • Position: #44 / 542
  • Number of attempts: 4
Wikitext headings to markdown - 984 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #50 / 206
  • Number of attempts: 1
hello-world-vimgolf - 2411 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #329 / 686
  • Number of attempts: 1
Contribute to keyboard mashing - 869 entries

Speak in tongues

  • Best score: 17
  • Best player score: 17
  • Position: #53 / 263
  • Number of attempts: 6
Reordering Lorem Ipsum - 265 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 13
  • Position: #23 / 64
  • Number of attempts: 1
Solve anagram with ASCII letters - 41 entries

ASCII created by TOIlet command

  • Best score: 47
  • Best player score: 48
  • Position: #7 / 17
  • Number of attempts: 1
Fill in the chess board - 932 entries

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

  • Best score: 19
  • Best player score: 19
  • Position: #35 / 179
  • Number of attempts: 15
Transpose a python matrix - 847 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 24
  • Position: #42 / 135
  • Number of attempts: 8
Create a diamond comment - 335 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 28
  • Position: #28 / 74
  • Number of attempts: 9
Lowercase first characters - 482 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: 33
  • Position: #35 / 180
  • Number of attempts: 1
Write Hello World in the 'i use arch btw' -programming language - 31 entries

> "I use Arch btw" is an esoteric programming language based on Brainfuck in which the Brainfuck commands have been replaced with the following keywords: i, use, arch, linux, btw, by, the, way. https://github.com/OverMighty/i-use-arch-btw

  • Best score: 162
  • Best player score: 165
  • Position: #3 / 16
  • Number of attempts: 1
simple replacements - 1706 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #89 / 377
  • Number of attempts: 5
Inverting Lines - 1866 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #225 / 504
  • Number of attempts: 3
CSV to MD format - 403 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 98
  • Position: #71 / 93
  • Number of attempts: 1
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: 38
  • Position: #23 / 97
  • Number of attempts: 1
Python dataclasses - 1120 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #78 / 280
  • Number of attempts: 8
Making 3 line function a one liner. - 311 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #174 / 199
  • Number of attempts: 1
Modernise code - 1352 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #73 / 313
  • Number of attempts: 1
Enumerate Bullets - 308 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: #50 / 83
  • Number of attempts: 13
swap number pairs - 2022 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #114 / 373
  • Number of attempts: 9
HS Final exam vimgolf - 887 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #37 / 233
  • 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: 22
  • Position: #23 / 55
  • Number of attempts: 1
Python: Def to Lambda - 435 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #87 / 152
  • Number of attempts: 8
Rural Post - 4410 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #470 / 1083
  • Number of attempts: 1
Add quotes to ansible playbook - 940 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #92 / 300
  • Number of attempts: 1
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: 21
  • Position: #50 / 95
  • Number of attempts: 1
Yo To Hello - 1122 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #394 / 520
  • Number of attempts: 1
Replace pattern with 1, 2, 3, ... on each line - 1112 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: 22
  • Position: #89 / 227
  • Number of attempts: 4
Simple, Practical, and Common - 33427 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: #2804 / 7377
  • Number of attempts: 4
Add text at some column - 162 entries

Complete golang struct statement.

  • Best score: 31
  • Best player score: 31
  • Position: #22 / 63
  • Number of attempts: 4
Swap values - 4553 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #526 / 1259
  • Number of attempts: 5
prepend * to every non-blank line - 6248 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #753 / 1526
  • Number of attempts: 1
One number per line - 18639 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Position: #830 / 3848
  • Number of attempts: 11
Right Align Part of the line - 132 entries

The challenge is to right align a part of the line - this is useful in some SQL queries where it's more clear which are the fields displayed

  • Best score: 19
  • Best player score: 20
  • Position: #24 / 42
  • Number of attempts: 5
Quote modules - 1063 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 22
  • Position: #82 / 277
  • Number of attempts: 7
Aliases for cd - 876 entries

Create these beautiful aliases with as few strokes as possible. Are you up for the challenge?

  • Best score: 30
  • Best player score: 33
  • Position: #37 / 154
  • Number of attempts: 7
Prime Numbers - 345 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 34
  • Position: #9 / 102
  • Number of attempts: 3
vim = 22 / 7 - 448 entries

pi square vim

  • Best score: 20
  • Best player score: 20
  • Position: #39 / 132
  • Number of attempts: 1
citizen_hacks_2019_challenge2 - 193 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 7
  • Position: #93 / 101
  • Number of attempts: 1
Palindrome numbers - 25 entries

For each number compute its associated palindrome. First number (first line) has been eaten! #prime

  • Best score: 30
  • Best player score: 30
  • Position: #8 / 15
  • Number of attempts: 4
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: 9
  • Position: #102 / 226
  • Number of attempts: 5
V to the i - 4761 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1491 / 1883
  • 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: 12
  • Position: #26 / 843
  • Number of attempts: 3
SCREAMING_SNAKE_CASE to Title Case - 1202 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 20
  • Position: #120 / 247
  • Number of attempts: 4
Add semicolons - 10809 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #763 / 3050
  • Number of attempts: 1
Bad Copy Syntax - 2008 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #222 / 518
  • Number of attempts: 1
Word Blender - 147 entries

The insides of long words seem to have been run through the blender. Can you fix this famous tale, brave knight?

  • Best score: 28
  • Best player score: 28
  • Position: #4 / 56
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 691 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #296 / 390
  • Number of attempts: 2
citizen_hacks_2019_challenge3 - 37 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 4
  • Best player score: 4
  • Position: #32 / 34
  • Number of attempts: 1
Box it - 7836 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #554 / 1868
  • Number of attempts: 1
Cool or not? - 802 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 15
  • Position: #71 / 228
  • Number of attempts: 6
Two pairs of cluster of letters creates word - 742 entries

Clean and group.

  • Best score: 17
  • Best player score: 18
  • Position: #94 / 176
  • Number of attempts: 6
Every other line - 2901 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #269 / 702
  • Number of attempts: 8
Copy three lines - 2863 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #185 / 637
  • Number of attempts: 14
Extract argument from function - 2321 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 13
  • Position: #268 / 747
  • Number of attempts: 4
Search and Replace 0 - 4826 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #725 / 1596
  • Number of attempts: 3
Number Sort - 307 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Position: #140 / 165
  • Number of attempts: 1
That hyphen - 2564 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Position: #239 / 697
  • Number of attempts: 4
comment and uncomment code inline - 1074 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 9
  • Position: #159 / 316
  • Number of attempts: 3
Flip the bit - 124 entries

Change the specific 0 to a 1.

  • Best score: 7
  • Best player score: 7
  • Position: #1 / 72
  • Number of attempts: 2
Just the middle - 11370 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1507 / 4168
  • Number of attempts: 3
Make HTML List - 1050 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 33
  • Position: #15 / 273
  • Number of attempts: 8
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: 15
  • Position: #31 / 212
  • Number of attempts: 10
Un"finnish"ed Work - 113 entries

Replace å by a, ä by a and ö by o.

  • Best score: 14
  • Best player score: 14
  • Position: #19 / 58
  • Number of attempts: 5
Python Hello World! Reformatting - 941 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: 39
  • Position: #7 / 367
  • Number of attempts: 1
Return the cow - 72 entries

This cow is too verbose. Give it a lesson.

  • Best score: 52
  • Best player score: 52
  • Position: #5 / 29
  • Number of attempts: 1
Remember VimGolf Rules ! - 259 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 7
  • Position: #42 / 139
  • Number of attempts: 2
Stairstep digits - 381 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 13
  • Position: #126 / 142
  • Number of attempts: 5
Basic renumbering - 5605 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #277 / 1260
  • Number of attempts: 2
Simple addition - 310 entries

The right side of the equation is already there. We just need the left one now.

  • Best score: 12
  • Best player score: 13
  • Position: #77 / 117
  • Number of attempts: 3
Hidden Message - 77 entries

Find the hidden message and replace all other characters with spaces.

  • Best score: 33
  • Best player score: 35
  • Position: #14 / 29
  • Number of attempts: 3
create arrows in a list - 106 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 10
  • Position: #63 / 71
  • Number of attempts: 3
Create Leading Zeros - 239 entries

Create leading zeros only for id columns. Please use generic approach!

  • Best score: 23
  • Best player score: 23
  • Position: #10 / 81
  • Number of attempts: 1
Create a table - 331 entries

Convert the given input into a formatted table

  • Best score: 16
  • Best player score: 17
  • Position: #58 / 105
  • Number of attempts: 6
JS notation to Immutable.js notation - 165 entries

Now Immutable.js made its way into many frontends. This challenge consists of a typical refactoring that many of us are facing now.

  • Best score: 34
  • Best player score: 34
  • Position: #2 / 62
  • Number of attempts: 1
Combines all items - 307 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 9
  • Position: #87 / 139
  • 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: 16
  • Position: #48 / 121
  • Number of attempts: 2
Fun With The Diagonal - 104 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Position: #78 / 80
  • Number of attempts: 1
Vice versa - 7819 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Position: #850 / 2108
  • Number of attempts: 3
Double and switch - 38 entries

Aaaanother case switcher

  • Best score: 18
  • Best player score: 18
  • Position: #9 / 18
  • Number of attempts: 1
Pretty multi-line bash - 219 entries

Bash line continuations are much prettier when they're column aligned.

  • Best score: 15
  • Best player score: 15
  • Position: #29 / 76
  • Number of attempts: 1
Free hyphen! - 164 entries

Just like "Inner hyphens", but I'm giving you a free hyphen to play with. Will your solution be any different?

  • Best score: 9
  • Best player score: 11
  • Position: #86 / 88
  • Number of attempts: 2
Triangle of arrows - 179 entries

I made this by accident when working on another challenge. How would you go about making this?

  • Best score: 14
  • Best player score: 14
  • Position: #14 / 42
  • Number of attempts: 1
Sorting a glossary - 126 entries

Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.

  • Best score: 6
  • Best player score: 7
  • Position: #77 / 80
  • Number of attempts: 2
Order and join - 964 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #82 / 257
  • Number of attempts: 4
Paragraph breaks - 509 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 10
  • Position: #45 / 166
  • Number of attempts: 4
Array of characters - 153 entries

We all copy paste things off the internet, but the syntax doesn't look right. Fix it as fast as possible.

  • Best score: 33
  • Best player score: 39
  • Position: #24 / 45
  • Number of attempts: 3
comments galore - 1017 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #305 / 421
  • Number of attempts: 2
Mirrored text - 167 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 14
  • Position: #21 / 70
  • Number of attempts: 4
Inner hyphens - 129 entries

Yet another hyphen challenge. Adding 5 hyphens to a file shouldn't be too hard.

  • Best score: 11
  • Best player score: 12
  • Position: #73 / 80
  • Number of attempts: 2
Scrambled numbers - 780 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 18
  • Position: #44 / 183
  • Number of attempts: 1
Align commas - 1063 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 11
  • Position: #99 / 243
  • Number of attempts: 1
citizen_hacks_2019_challenge4 - 90 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 5
  • Position: #52 / 63
  • Number of attempts: 1
One to Ten - 2174 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: 12
  • Position: #361 / 664
  • Number of attempts: 1
citizen_hacks_2019_challenge5 - 139 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Position: #49 / 75
  • Number of attempts: 1
Line under headers - 2022 entries

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

  • Best score: 24
  • Best player score: 25
  • Position: #52 / 498
  • Number of attempts: 7
Build a six - 274 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 22
  • Position: #59 / 93
  • Number of attempts: 2
ASCII Art - 85 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 10
  • Position: #33 / 53
  • Number of attempts: 3
simple format (3) - 73 entries

reverse two column values!

  • Best score: 34
  • Best player score: 34
  • Position: #8 / 22
  • Number of attempts: 1
Greek Letters - 62 entries

Starting with a list of Greek letters, create a cross-reference table showing all of the Greek alpha-beta. You'll likely need to use digraphs (:help digraphs). Note that while most digraphs can be entered with either character first, lowercase sigma has two digraphs -- s* AND *s! Good luck!

  • Best score: 34
  • Best player score: 34
  • Position: #3 / 24
  • Number of attempts: 1
citizen_hacks_2019_challenge6 - 61 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Position: #46 / 49
  • Number of attempts: 1
Join 'em - 251 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #24 / 151
  • Number of attempts: 1
Delete to the end of the current line - 794 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 6
  • Position: #357 / 387
  • Number of attempts: 1
change parenthesis - 287 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 9
  • Position: #93 / 160
  • Number of attempts: 2
Remove quotes after first field - 367 entries

Remove the quotes around each field except for the first field.

  • Best score: 16
  • Best player score: 16
  • Position: #35 / 90
  • Number of attempts: 1
Put the months in order - 972 entries

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

  • Best score: 20
  • Best player score: 20
  • Position: #20 / 161
  • Number of attempts: 4
Reorder the groups - 1146 entries

Change the order so that the groups of fruit come before the vegetables.

  • Best score: 14
  • Best player score: 14
  • Position: #94 / 262
  • Number of attempts: 1
move titles next to url, in quotes - 508 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 19
  • Position: #15 / 136
  • Number of attempts: 4
Array transposition - 2406 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 17
  • Position: #173 / 445
  • Number of attempts: 9
Sierpinski's Triangle - 84 entries

Build the famous fractal, Sierpinski's Triangle.

  • Best score: 25
  • Best player score: 25
  • Position: #5 / 26
  • Number of attempts: 1
Mirror Symmetry - 811 entries

Add backslashes.

  • Best score: 7
  • Best player score: 10
  • Position: #121 / 268
  • Number of attempts: 5
Binary and Increment - 48 entries

Some numbers fun: not only increasing numbers but also increasing binary.

  • Best score: 22
  • Best player score: 22
  • Position: #2 / 18
  • Number of attempts: 5
From A to B - 575 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 16
  • Position: #58 / 157
  • Number of attempts: 2
Cartesian product - 222 entries

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

  • Best score: 24
  • Best player score: 25
  • Position: #10 / 93
  • Number of attempts: 1
Collect List - 4267 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #530 / 1188
  • Number of attempts: 1
Space out the alphabet - 1630 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Position: #112 / 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: 14
  • Position: #12 / 66
  • Number of attempts: 7
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: 21
  • Position: #5 / 24
  • Number of attempts: 1
ASCII box - 333 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 23
  • Position: #41 / 106
  • Number of attempts: 5
50 factorials mod 97 - 50 entries

List 1! to 50!, but give your answer mod 97.

  • Best score: 28
  • Best player score: 29
  • Position: #9 / 19
  • Number of attempts: 3
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: 10
  • Position: #11 / 33
  • Number of attempts: 1
Square numbers - 104 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 17
  • Position: #5 / 41
  • Number of attempts: 5
Simple Maths - 46 entries

Not much to say, discover by yourself!

  • Best score: 26
  • Best player score: 27
  • Position: #3 / 26
  • 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: 12
  • Position: #155 / 204
  • Number of attempts: 3
I forgot quotes - 15936 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1134 / 4164
  • Number of attempts: 3
vim1001 - 283 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

  • Best score: 17
  • Best player score: 20
  • Position: #11 / 108
  • Number of attempts: 8
Subtraction - 179 entries

Solve the equations.

  • Best score: 18
  • Best player score: 19
  • Position: #17 / 62
  • Number of attempts: 1
Count both ways - 1006 entries

Right AND down.

  • Best score: 13
  • Best player score: 13
  • Position: #59 / 352
  • Number of attempts: 5
Change name of a variable - 171 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #129 / 134
  • Number of attempts: 1
120 Degrees - 469 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 14
  • Position: #39 / 144
  • Number of attempts: 1
Gray area - 745 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #132 / 270
  • Number of attempts: 4
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: 19
  • Position: #3 / 34
  • Number of attempts: 1
Neither Fizz nor Buzz - 235 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 13
  • Position: #15 / 102
  • Number of attempts: 1
Do you demand a shrubbery? - 1125 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 18
  • Position: #155 / 295
  • Number of attempts: 3
Don't know what this is - 1991 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 12
  • Position: #240 / 580
  • Number of attempts: 9
Where should I put the Newline? - 868 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #222 / 433
  • Number of attempts: 2
Five Pillars - 63 entries

Arrange all words in a table with 5 columns. The minimal space between words in columns is 2 spaces. Columns do have varying width.

  • Best score: 41
  • Best player score: 41
  • Position: #3 / 24
  • Number of attempts: 1
Piphilology - 142 entries

Piphilology comprises the creation and use of mnemonic techniques to remember a span of digits of the mathematical constant π. http://en.wikipedia.org/wiki/Piphilology

  • Best score: 29
  • Best player score: 29
  • Position: #9 / 52
  • Number of attempts: 11
Mess in revision history - 1179 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 17
  • Position: #69 / 248
  • Number of attempts: 18
Shuffle puzzle - 331 entries

Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.

  • Best score: 13
  • Best player score: 14
  • Position: #50 / 103
  • Number of attempts: 9
Split the words - 360 entries

Add the spaces manually if you must, but if you use Vim's spell checking feature wisely, I think you'll save a LARGE number of strokes.

  • Best score: 18
  • Best player score: 21
  • Position: #18 / 109
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10641 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2507 / 3673
  • Number of attempts: 1
attr_aligner - 3454 entries

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

  • Best score: 19
  • Best player score: 19
  • Position: #181 / 695
  • Number of attempts: 1
Under the cupola - 49 entries

Taking some liberty about the name and plot of the Stephen King's famous novel (and TV series) to make this challenge. Are you able to recreate graphically the key phrase of the story? (I think is gonna be hard!)

  • Best score: 33
  • Best player score: 34
  • Position: #13 / 18
  • Number of attempts: 4
Counting in binary - 478 entries

"a" represents 0; "A" represents 1. Start from zero and count to 15.

  • Best score: 16
  • Best player score: 16
  • Position: #14 / 114
  • Number of attempts: 1
quotes inside quotes - 3128 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 14
  • Position: #366 / 1073
  • Number of attempts: 3
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: 15
  • Position: #38 / 106
  • Number of attempts: 1
Number an outline - 251 entries

The indent and words are right, but the numbers are all wrong.

  • Best score: 25
  • Best player score: 28
  • Position: #8 / 76
  • Number of attempts: 2
Words in parens - 12867 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 13
  • Position: #18 / 3949
  • Number of attempts: 4
Hole-in-one - 1017 entries

Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.

  • Best score: 15
  • Best player score: 15
  • Position: #5 / 303
  • Number of attempts: 5
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: 25
  • Position: #6 / 37
  • Number of attempts: 1
Word frequency alignment - 278 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #122 / 159
  • Number of attempts: 1
Coordinates placeholder - 64 entries

Place coordinates instead of target search.

  • Best score: 22
  • Best player score: 23
  • Position: #14 / 37
  • Number of attempts: 2
fib.c cleanup - 67 entries

cleanup the file

  • Best score: 15
  • Best player score: 16
  • Position: #48 / 55
  • Number of attempts: 1
199 Fibonacci Numbers - 40 entries

Generate 199 Fibonacci Numbers using, if you like, the function S(x,y), a vimscript to sum two big numbers in reverse order.

  • Best score: 51
  • Best player score: 52
  • Position: #5 / 18
  • Number of attempts: 1
Harder than "abcd > a b c d" - 78 entries

Not as easy as the last challenge. This time, just one space between a and b, up to 25 spaces between y and z. (Removed some lines; diff was too long.)

  • Best score: 15
  • Best player score: 15
  • Position: #6 / 41
  • Number of attempts: 1
Chinese Multiplication Table - 78 entries

Print a Chinese multiplication table in Vim. In China, every kid is asked to memorize this table. And thanks to the mono-syllabism of Chinese characters, it is not that hard. Printing the multiplication table is also a good exercise for programming beginners. For-loop, escaped characters, etc... There should be some special ways to print it in Vim.

  • Best score: 39
  • Best player score: 41
  • Position: #5 / 25
  • Number of attempts: 1
Circle in a square - 141 entries

Probably looks more like "Egg in a rectangle" in most fonts, but it's actually 23x23.

  • Best score: 23
  • Best player score: 23
  • Position: #12 / 53
  • Number of attempts: 1
Groups magic - 157 entries

Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()

  • Best score: 13
  • Best player score: 13
  • Position: #18 / 92
  • Number of attempts: 4
Prefixes and suffixes - 598 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 18
  • Position: #28 / 194
  • Number of attempts: 5
Sort by your own sum - 74 entries

Same numbers as last time, but you'll have to add them yourself.

  • Best score: 25
  • Best player score: 26
  • Position: #7 / 29
  • Number of attempts: 3
Sort by sum of numbers in a line(?) - 60 entries

The lines with the biggest sums need to be at the top. The sums are on the right, which makes life hard. Maybe you can find a feature that will do all the work for you...

  • Best score: 15
  • Best player score: 16
  • Position: #35 / 37
  • Number of attempts: 2
Python: Lots of function arguments - 105 entries

The function definition is too long for one line. The modeline helps you with some typical Python indent settings.

  • Best score: 6
  • Best player score: 6
  • Position: #1 / 48
  • Number of attempts: 1
Checkerboard case pattern - 149 entries

All the squares are white. Make some of them black. But only the right ones.

  • Best score: 15
  • Best player score: 15
  • Position: #5 / 59
  • Number of attempts: 1
Printable ASCII characters - 136 entries

From a blank input, print all 95 printing ASCII characters one per line, from space to tilde.

  • Best score: 22
  • Best player score: 22
  • Position: #6 / 43
  • Number of attempts: 12
A simple change - 444 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 12
  • Position: #53 / 190
  • Number of attempts: 2
Simple Maths 2 - 35 entries

Time to practice expression register! #maths #linear

  • Best score: 17
  • Best player score: 19
  • Position: #6 / 15
  • Number of attempts: 2
Tiny column alignment - 47 entries

Align using the four blocks, don't forget to lowercase and have fun!

  • Best score: 33
  • Best player score: 33
  • Position: #7 / 22
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 404 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 8
  • Position: #7 / 190
  • Number of attempts: 1
The name of the game - 651 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #281 / 357
  • Number of attempts: 1
Complete the circuit grid! - 85 entries

Continuing from the last challenge, add additional rows to the grid. Change each of the names from 'A1'...'A10' to 'B1'...'B10', 'C1'...'C10', etc, and for each new row add 0.7 to the X values in the (X Y) at the end of each line.

  • Best score: 46
  • Best player score: 46
  • Position: #1 / 29
  • Number of attempts: 1
lamb had a little Mary - 596 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 16
  • Position: #28 / 164
  • Number of attempts: 10
SFD-ROC: vimvimvim - 1586 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #250 / 441
  • Number of attempts: 3
Chucking wood - 112 entries

An exercise in compressing repetitive text. For this challenge, any entry that uses keys outside the main row (such as arrow keys, Home, End, Delete, etc.) will be removed. (Esc is OK, though you should be using C-[ anyway.)

  • Best score: 50
  • Best player score: 50
  • Position: #1 / 47
  • Number of attempts: 6
Unwrap the text of an email message - 188 entries

Reverse of "Wrap the text of an email message to 79 characters". gq and gw are great for wrapping paragraphs. But sometimes other programs choke on your wrapped lines. What's the best way to un-gq?

  • Best score: 16
  • Best player score: 16
  • Position: #34 / 73
  • Number of attempts: 3
ASCII-art Histogram - 320 entries

Create an ASCCI-art histogram for the given numbers. Make sure not to leave trailing whitespaces. Thanks to VimGolf I recently discovered a feature of Vim thAT blew my mind. I'm curious to see what real ninjas make of it ;-)

  • Best score: 33
  • Best player score: 33
  • Position: #10 / 57
  • Number of attempts: 1
maximun and minimun - 59 entries

Find the maximum and minimum of the rows.

  • Best score: 50
  • Best player score: 50
  • Position: #1 / 25
  • Number of attempts: 1
Saving the hashes(#) - 2008 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 20
  • Position: #73 / 476
  • Number of attempts: 10
SFD-ROC: ROT13 Phonics - 99 entries

A is for apple, b is for ball, etc... This familiar phonics poem has been rotated 13 characters. Make the letter match the word.

  • Best score: 6
  • Best player score: 6
  • Position: #63 / 72
  • Number of attempts: 1
Let's play some Ivmgolf - 1096 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Position: #143 / 442
  • Number of attempts: 5
citizen_hacks_2019_challenge1 - 50 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 5
  • Best player score: 5
  • Position: #38 / 44
  • Number of attempts: 1
Recursively Palindrome - 245 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 21
  • Position: #6 / 74
  • Number of attempts: 6
calculations - 297 entries

Complete these (weird) calculations.

  • Best score: 38
  • Best player score: 38
  • Position: #18 / 67
  • Number of attempts: 7
Flip the chessboard - 79 entries

White's turn is over. Flip the board to black's perspective. I added coordinates to frustrate you.

  • Best score: 18
  • Best player score: 18
  • Position: #8 / 31
  • Number of attempts: 1
Vertical Limit - 2479 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #179 / 744
  • Number of attempts: 3
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: #30 / 49
  • Number of attempts: 4
Exchanging Quotes - 824 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 30
  • Position: #15 / 227
  • Number of attempts: 1
Switch function arguments - 2082 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #330 / 652
  • Number of attempts: 2
Append semicolon after expressions - 1015 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #142 / 407
  • Number of attempts: 3
Remove semicolons after expressions - 635 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Position: #135 / 260
  • Number of attempts: 3
switch variable - 5041 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #668 / 1738
  • Number of attempts: 3
The meaning - 559 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #322 / 357
  • Number of attempts: 1
remove dupes from array - 1338 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 17
  • Position: #87 / 332
  • Number of attempts: 2
Complete the hex array data - 196 entries

Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]

  • Best score: 23
  • Best player score: 23
  • Position: #3 / 73
  • Number of attempts: 1
imports alignment (python) - 662 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 17
  • Position: #49 / 195
  • Number of attempts: 1
Generate Fibonacci Numbers - 263 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 19
  • Position: #23 / 98
  • Number of attempts: 1
It'ss tooo coold too typpe todaay - 222 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #14 / 97
  • Number of attempts: 7
Rotating Philosophers Problem - 392 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 29
  • Position: #31 / 165
  • Number of attempts: 1
HTML to Haml - 843 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 23
  • Position: #10 / 203
  • Number of attempts: 1
expand a list comprehension (python) - 302 entries

Please show your way to convert a list comprehension in python to an ordinary for-loop expression!

  • Best score: 42
  • Best player score: 42
  • Position: #18 / 107
  • Number of attempts: 1
Generate English Alphabets - 475 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 19
  • Position: #12 / 204
  • Number of attempts: 3
Overall Vimgolf Rank - 171 entries

Suppose you are trying to figure out what your overall rank is at Vimgolf(the sum of all the ranks you got), and as a Vim ninja you decided to use Vim to do the job. Your solution should work for every Vimgolf profile page(The actual input file for this challenge is my Vimgolf profile page). So, direct answer insertion is considered cheating.

  • Best score: 23
  • Best player score: 23
  • Position: #7 / 58
  • Number of attempts: 1
Numbering a List - 1863 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #82 / 643
  • Number of attempts: 1
Solve the Sokoban - 165 entries

A wink for all Vimgolfers that play Nethack too.

  • Best score: 25
  • Best player score: 25
  • Position: #8 / 73
  • Number of attempts: 1
Java Array2List - 226 entries

Convert an java array initializer into a list.

  • Best score: 67
  • Best player score: 68
  • Position: #5 / 84
  • Number of attempts: 1
The holy-grail may help - 352 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #185 / 207
  • Number of attempts: 2
Ruby 1.9 hashes - 1221 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 13
  • Position: #185 / 401
  • Number of attempts: 1
CSV to JSON - 173 entries

A search for shortest vimissh way to convert CSV to JSON.

  • Best score: 56
  • Best player score: 56
  • Position: #4 / 66
  • Number of attempts: 1
Assignment Alignment - 833 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 18
  • Position: #59 / 216
  • Number of attempts: 1
Shebangs for all - 1916 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: 12
  • Position: #159 / 501
  • Number of attempts: 3
A Simple One - 1005 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #572 / 646
  • Number of attempts: 1
Round Round - 288 entries

Round Round

  • Best score: 19
  • Best player score: 19
  • Position: #10 / 85
  • Number of attempts: 1
82 bottles of beer on the wall - 307 entries

Take them down. (sorry, only 82 bottles because the problem size is limited!)

  • Best score: 106
  • Best player score: 106
  • Position: #2 / 143
  • 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: 23
  • Position: #31 / 135
  • Number of attempts: 1
Reverse and count - 459 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 18
  • Position: #18 / 174
  • Number of attempts: 2
Letters are numbers - 154 entries

Letters and numbers are interchangeable. A lot of programming languages give you simple ways to convert individual letters to hex, binary and decimal but does Vim?

  • Best score: 20
  • Best player score: 25
  • Position: #11 / 74
  • Number of attempts: 4
Another Mixed-Up Haiku - 238 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 21
  • Position: #40 / 86
  • Number of attempts: 1
Ruby 1.9 compat - 610 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 14
  • Position: #71 / 230
  • Number of attempts: 1
Reverse Simple Deletion - 834 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 11
  • Position: #58 / 455
  • Number of attempts: 2
Increment, increment, increment.... - 666 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #69 / 403
  • Number of attempts: 1
Sorting paragraphs - 506 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 18
  • Position: #13 / 157
  • Number of attempts: 1
Indentation - 499 entries

Indent each line according to the right number of spaces it needs.

  • Best score: 20
  • Best player score: 20
  • Position: #1 / 170
  • Number of attempts: 1
Hatsuyume - 463 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #1 / 177
  • Number of attempts: 1
Turn this csv list into queries - 205 entries

Transform each line of this csv file into a MySQL-ready INSERT query.

  • Best score: 98
  • Best player score: 98
  • Position: #6 / 96
  • Number of attempts: 1
Dumb to smart - 97 entries

Turn dumb quote to smart vim's way.

  • Best score: 28
  • Best player score: 28
  • Position: #10 / 55
  • Number of attempts: 1
The Cake is a Lie - 1297 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #280 / 515
  • Number of attempts: 4
Fix the Haiku - 276 entries

Change this slightly scrambled haiku to its unscrambled form and fix the capitalisation and punctuation along the way.

  • Best score: 28
  • Best player score: 28
  • Position: #3 / 110
  • Number of attempts: 1
Context insensitive completion 0 - 534 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: 6
  • Position: #3 / 237
  • Number of attempts: 3
Remove Accent off the Letter - 107 entries

Remove all the accent from extremely accented statements.

  • Best score: 37
  • Best player score: 54
  • Position: #12 / 50
  • Number of attempts: 1
Compile C - 366 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 19
  • Position: #24 / 133
  • Number of attempts: 1
Context Insensitive completion 1 - 464 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #158 / 234
  • Number of attempts: 1
Almost encrypted - 199 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #127 / 145
  • Number of attempts: 1
Make Fancy Header - 1018 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 15
  • Position: #1 / 339
  • Number of attempts: 4
Linear congruential generator - 132 entries

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

  • Best score: 28
  • Best player score: 28
  • Position: #5 / 51
  • Number of attempts: 1
Reformat some Python - 581 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 34
  • Position: #43 / 231
  • Number of attempts: 1
Reformat a C golf submission - 569 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 22
  • Position: #5 / 202
  • Number of attempts: 1
Reverse characters in a line - 724 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 12
  • Position: #24 / 255
  • Number of attempts: 1
PEP8 Python Wrapping Comments and Code - 190 entries

According to PEP8, long flowy text and code should have different max line lengths. Code: 79 characters max Long flowy text: 72 characters max

  • Best score: 21
  • Best player score: 21
  • Position: #1 / 65
  • Number of attempts: 2
Reformat most common surnames - 667 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 24
  • Position: #35 / 201
  • Number of attempts: 7
Remember FizzBuzz? - 670 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 39
  • Position: #16 / 182
  • Number of attempts: 1
Get rid of html tags - 376 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 16
  • Position: #20 / 221
  • Number of attempts: 2
Change the content of a string - 1495 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #305 / 563
  • Number of attempts: 2
Deleting folded text - 342 entries

The text below contains three folds. Delete them (and the text inside them). For example: 123 456 /*{{{*/ 789 /*}}}*/ 012 Should become: 123 012 Also, add `aoeuaoeu` to make sure small solutions don't get flagged as cheating.

  • Best score: 17
  • Best player score: 17
  • Position: #10 / 114
  • Number of attempts: 1
Sort and add attributes - 1352 entries

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

  • Best score: 33
  • Best player score: 34
  • Position: #366 / 536
  • Number of attempts: 3
Add fold markers to a .c file - 565 entries

Fold markers can make it easier to navigate source code. Add them to this .c file.

  • Best score: 30
  • Best player score: 31
  • Position: #54 / 173
  • Number of attempts: 4
Reconstruct the Sentence - 1398 entries

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

  • Best score: 20
  • Best player score: 21
  • Position: #238 / 389
  • Number of attempts: 4
Braces or Brackets? - 924 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 35
  • Position: #46 / 293
  • Number of attempts: 9
Whitespace, empty lines and tabs - 3413 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #158 / 745
  • Number of attempts: 8
Flodder-challenge - 1150 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 28
  • Position: #70 / 314
  • Number of attempts: 12
Simple text editing with Vim - 12395 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1961 / 3605
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6683 entries

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

  • Best score: 32
  • Best player score: 33
  • Position: #268 / 1639
  • Number of attempts: 5
Peppa Pig
Twitter2:

entered into 288 challenges

contributed 0 challenges