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

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

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

  • Best score: 17
  • Best player score: 17
  • Position: #31 / 284
  • Number of attempts: 1
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: 18
  • Position: #233 / 514
  • Number of attempts: 2
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: 27
  • Position: #149 / 328
  • Number of attempts: 4
Many duplicates - 1308 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #341 / 429
  • Number of attempts: 3
2 quick changes and a numbered list - 613 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 68
  • Position: #120 / 147
  • Number of attempts: 2
delete swap - 1621 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #241 / 505
  • Number of attempts: 9
Put a newline after every 10 lines in vim - 1636 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #385 / 544
  • Number of attempts: 3
Wikitext headings to markdown - 984 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 30
  • Position: #134 / 206
  • Number of attempts: 6
hello-world-vimgolf - 2431 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #268 / 692
  • Number of attempts: 5
Contribute to keyboard mashing - 874 entries

Speak in tongues

  • Best score: 17
  • Best player score: 23
  • Position: #244 / 265
  • Number of attempts: 1
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: 43
  • Position: #117 / 180
  • Number of attempts: 2
simple replacements - 1706 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 27
  • Position: #306 / 377
  • Number of attempts: 2
Inverting Lines - 1866 entries

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

  • Best score: 10
  • Best player score: 15
  • Position: #384 / 504
  • Number of attempts: 2
Modernise code - 1352 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 44
  • Position: #176 / 313
  • Number of attempts: 7
swap number pairs - 2022 entries

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

  • Best score: 16
  • Best player score: 32
  • Position: #266 / 373
  • Number of attempts: 3
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: 44
  • Position: #207 / 233
  • Number of attempts: 1
Extend shell script - 109 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 77
  • Position: #36 / 43
  • Number of attempts: 2
Easy modification of ssh config - 343 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 61
  • Position: #96 / 106
  • Number of attempts: 1
Turn the x - 316 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 28
  • Position: #74 / 79
  • Number of attempts: 3
Rural Post - 4410 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #459 / 1083
  • Number of attempts: 2
Satisfy the go linter - 2350 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: 28
  • Position: #345 / 462
  • Number of attempts: 6
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: #138 / 218
  • Number of attempts: 2
Yo To Hello - 1125 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 12
  • Position: #483 / 521
  • Number of attempts: 1
Simple, Practical, and Common - 33443 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: 27
  • Position: #4046 / 7380
  • Number of attempts: 2
Swap values - 4553 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #972 / 1259
  • Number of attempts: 3
prepend * to every non-blank line - 6250 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #802 / 1528
  • Number of attempts: 2
One number per line - 18668 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3523 / 3851
  • Number of attempts: 1
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: 23
  • Position: #38 / 42
  • Number of attempts: 4
Quote modules - 1063 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 32
  • Position: #229 / 277
  • Number of attempts: 2
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: 55
  • Position: #113 / 154
  • Number of attempts: 1
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: 15
  • Position: #206 / 226
  • Number of attempts: 2
V to the i - 4764 entries

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

  • Best score: 7
  • Best player score: 9
  • Position: #1735 / 1884
  • Number of attempts: 2
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: 16
  • Position: #612 / 843
  • Number of attempts: 2
Add string initializers to an enum - 865 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 28
  • Position: #218 / 255
  • Number of attempts: 2
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: 30
  • Position: #178 / 247
  • Number of attempts: 3
remove lines containing the word "reader" - 3555 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #846 / 1150
  • Number of attempts: 4
Every other line - 2901 entries

AaAaAaA

  • Best score: 12
  • Best player score: 17
  • Position: #524 / 702
  • Number of attempts: 1
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: 17
  • Position: #632 / 747
  • Number of attempts: 1
Start coding format - 147 entries

I used to start coding with following format: int main(){ -(cursor here) }

  • Best score: 22
  • Best player score: 25
  • Position: #65 / 70
  • Number of attempts: 4
Search and Replace 0 - 4829 entries

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

  • Best score: 12
  • Best player score: 20
  • Position: #1477 / 1597
  • Number of attempts: 1
Just the middle - 11372 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3185 / 4170
  • Number of attempts: 10
Python Hello World! Reformatting - 945 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: 49
  • Position: #334 / 368
  • Number of attempts: 4
Remember VimGolf Rules ! - 259 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #126 / 139
  • Number of attempts: 2
Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp! - 63 entries

I bumped into this in a dailywtf code: http://pastebin.com/QApa5ycS I didn't want to translate a string whenever I wanted to be [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc] on slack, so I figured a script (python, sed, whatever) would be helpful. Well, or a few vim keystroke!

  • Best score: 18
  • Best player score: 18
  • Position: #30 / 37
  • Number of attempts: 3
Basic renumbering - 5605 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #500 / 1260
  • Number of attempts: 4
create arrows in a list - 106 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 27
  • Position: #70 / 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: 26
  • Position: #40 / 81
  • Number of attempts: 3
Fiddle percentages into real numbers - 840 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 18
  • Position: #249 / 287
  • Number of attempts: 5
Add to end of each line... kinda - 327 entries

Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?

  • Best score: 12
  • Best player score: 15
  • Position: #168 / 172
  • Number of attempts: 2
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: 10
  • Position: #130 / 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: 19
  • Position: #96 / 121
  • Number of attempts: 1
underscore_to_camelCase - 162 entries

Pointy haired boss decided we need to switch to camelCase. Let's get this over with.

  • Best score: 14
  • Best player score: 16
  • Position: #67 / 80
  • Number of attempts: 5
Vice versa - 7848 entries

Little role switching.

  • Best score: 12
  • Best player score: 29
  • Position: #2023 / 2112
  • Number of attempts: 2
lipsum lines - 255 entries

Convert a quoted block of text into strings in a list.

  • Best score: 28
  • Best player score: 35
  • Position: #72 / 93
  • Number of attempts: 1
Angular naming conventions - 306 entries

In angular, a directive name follows the camelCase convention. When the directive is used in an HTML template, the words are instead separated by a dash. Go from to the other the fastest!

  • Best score: 18
  • Best player score: 19
  • Position: #61 / 116
  • Number of attempts: 2
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: 15
  • Position: #540 / 664
  • 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: 31
  • Position: #309 / 498
  • Number of attempts: 4
simple format (3) - 73 entries

reverse two column values!

  • Best score: 34
  • Best player score: 66
  • Position: #20 / 22
  • Number of attempts: 3
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: 5
  • Position: #251 / 387
  • Number of attempts: 2
change parenthesis - 287 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Position: #148 / 160
  • Number of attempts: 2
Assign numbers to fields - 106 entries

You are given a list of space-separated strings. Add an increasing numeric prefix to each one.

  • Best score: 19
  • Best player score: 29
  • Position: #56 / 60
  • Number of attempts: 1
unknown command - 165 entries

I want change 5 words

  • Best score: 7
  • Best player score: 10
  • Position: #73 / 85
  • Number of attempts: 1
Swap assigned value - 626 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #105 / 250
  • Number of attempts: 6
Change your calendar - 362 entries

Happy New Year!

  • Best score: 18
  • Best player score: 41
  • Position: #77 / 85
  • Number of attempts: 3
Collect List - 4267 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 15
  • Position: #747 / 1188
  • Number of attempts: 2
VimGolfNight - 536 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #289 / 343
  • Number of attempts: 4
camel riding - 774 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 17
  • Position: #196 / 276
  • Number of attempts: 2
swap or reverse - 117 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Position: #52 / 67
  • Number of attempts: 5
Logging with key - 301 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 40
  • Position: #77 / 86
  • Number of attempts: 2
Space out the alphabet - 1630 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 33
  • Position: #430 / 442
  • Number of attempts: 3
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: 25
  • Position: #64 / 66
  • Number of attempts: 1
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: 50
  • Position: #21 / 24
  • Number of attempts: 3
Fill visual area - 82 entries

Just have fun!

  • Best score: 20
  • Best player score: 46
  • Position: #21 / 36
  • Number of attempts: 2
Line 'em up! - 395 entries

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

  • Best score: 17
  • Best player score: 22
  • Position: #79 / 111
  • Number of attempts: 3
Shuffled numbers - 236 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 / 94
  • Number of attempts: 3
Mute the second method of this script - 447 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 11
  • Position: #230 / 237
  • 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: 27
  • Position: #31 / 33
  • Number of attempts: 3
Custom McCarthy sequence - 36 entries

Generate the first one hundred and twenty numbers (starting with n=1). See here for some inspiration: http://en.wikipedia.org/wiki/McCarthy_91_function

  • Best score: 15
  • Best player score: 19
  • Position: #9 / 15
  • Number of attempts: 1
Test everything! - 162 entries

... and build the desired input data structure. Transform a list of values into a non-trivial format.

  • Best score: 22
  • Best player score: 33
  • Position: #33 / 52
  • Number of attempts: 6
Condensed Cases - 793 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 16
  • Position: #190 / 243
  • Number of attempts: 2
Pretty format for variable declarations - 155 entries

Project standards demand the equal signs must be aligned for better readability.

  • Best score: 13
  • Best player score: 21
  • Position: #54 / 62
  • Number of attempts: 2
Happy TvvO - 417 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #151 / 204
  • Number of attempts: 2
I forgot quotes - 15943 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2376 / 4165
  • Number of attempts: 2
Shift down - 193 entries

Number words are back.

  • Best score: 19
  • Best player score: 37
  • Position: #65 / 67
  • Number of attempts: 2
learn vim in short time - 232 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 9
  • Position: #151 / 158
  • Number of attempts: 1
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: 23
  • Position: #73 / 108
  • Number of attempts: 1
-a-b-c- - 3181 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #732 / 1131
  • Number of attempts: 1
Count both ways - 1006 entries

Right AND down.

  • Best score: 13
  • Best player score: 20
  • Position: #340 / 352
  • Number of attempts: 2
NBCU Weekly Challenge - Test - 243 entries

Just testing.

  • Best score: 18
  • Best player score: 18
  • Position: #63 / 114
  • Number of attempts: 4
Change name of a variable - 172 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: #127 / 135
  • Number of attempts: 1
Lisp Condense - 449 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 16
  • Position: #119 / 157
  • Number of attempts: 4
Gray area - 745 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 14
  • Position: #237 / 270
  • Number of attempts: 1
Refactor static member invocation - 198 entries

Someone used a static method. Refactor the method into a static import while fixing the assertion.

  • Best score: 28
  • Best player score: 42
  • Position: #54 / 63
  • Number of attempts: 4
Neither Fizz nor Buzz - 235 entries

Not your regular increment macro! The gaps are tricky.

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

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Position: #288 / 295
  • Number of attempts: 1
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: 14
  • Position: #377 / 580
  • Number of attempts: 1
Where should I put the Newline? - 868 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #409 / 433
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10641 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2502 / 3673
  • Number of attempts: 3
Counting in binary - 478 entries

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

  • Best score: 16
  • Best player score: 46
  • Position: #91 / 114
  • Number of attempts: 4
Letter case trickery - 1597 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 14
  • Position: #441 / 513
  • Number of attempts: 2
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: 17
  • Position: #944 / 1073
  • Number of attempts: 2
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: 21
  • Position: #96 / 106
  • Number of attempts: 4
Words in parens - 12867 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2523 / 3949
  • Number of attempts: 2
Pairs of numbers - 360 entries

Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"

  • Best score: 26
  • Best player score: 31
  • Position: #48 / 133
  • Number of attempts: 2
paste indent correction - JS - 102 entries

You copy some javascript code from a website and paste it into vim, it does not look good!

  • Best score: 16
  • Best player score: 32
  • Position: #55 / 57
  • Number of attempts: 3
Delete unwanted lines - 396 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #194 / 225
  • Number of attempts: 2
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: #119 / 159
  • Number of attempts: 5
Minimalist Limerick - 519 entries

Reproduce this lovely poem.

  • Best score: 30
  • Best player score: 39
  • Position: #131 / 173
  • Number of attempts: 4
Coordinates placeholder - 64 entries

Place coordinates instead of target search.

  • Best score: 22
  • Best player score: 28
  • Position: #35 / 37
  • Number of attempts: 1
fib.c cleanup - 67 entries

cleanup the file

  • Best score: 15
  • Best player score: 18
  • Position: #53 / 55
  • Number of attempts: 1
REDRUM - 150 entries

If you remember "The Shinning", the first time you saw the bloody word REDRUM you probably thinked "What the Hell is that?" Well, then you know that you need a little help from a looking-glass to make sense of it. Now it's time to use vim like a mirror to reveal the message.

  • Best score: 14
  • Best player score: 29
  • Position: #56 / 62
  • Number of attempts: 2
Enumerate words - 251 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 41
  • Position: #86 / 90
  • 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: 50
  • Position: #33 / 53
  • Number of attempts: 4
Block Fun 1 - 189 entries

Manipulate the columns to produce desired result.

  • Best score: 14
  • Best player score: 23
  • Position: #47 / 73
  • 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: 14
  • Position: #71 / 92
  • Number of attempts: 1
Prefixes and suffixes - 598 entries

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

  • Best score: 17
  • Best player score: 29
  • Position: #146 / 194
  • Number of attempts: 2
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: #34 / 37
  • Number of attempts: 2
abcd > a b c d - 281 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #198 / 219
  • Number of attempts: 1
Readable Rubyhash - 244 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: 23
  • Best player score: 29
  • Position: #64 / 92
  • Number of attempts: 1
NATO phonetic alphabet - 505 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 37
  • Position: #191 / 193
  • Number of attempts: 4
SFD-ROC: The Quick Brown Fox - 174 entries

Someone has vandalized our text (again). Please fix to read: The Quick Brown Fox Jumps Over The Lazy Dog.

  • Best score: 24
  • Best player score: 29
  • Position: #93 / 103
  • Number of attempts: 3
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: 11
  • Position: #157 / 190
  • Number of attempts: 1
The name of the game - 653 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #276 / 358
  • 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: 42
  • Position: #142 / 164
  • Number of attempts: 1
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: 15
  • Position: #413 / 441
  • Number of attempts: 1
Stairs Indenting - 451 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 20
  • Position: #179 / 194
  • Number of attempts: 1
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: 24
  • Position: #54 / 73
  • Number of attempts: 2
Array Transposition - 177 entries

Transpose four arrays into two.

  • Best score: 27
  • Best player score: 34
  • Position: #28 / 53
  • Number of attempts: 2
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: 29
  • Position: #354 / 476
  • Number of attempts: 3
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: 11
  • Position: #67 / 72
  • Number of attempts: 5
Let's play some Ivmgolf - 1096 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 10
  • Position: #365 / 442
  • Number of attempts: 2
Numbering a List - 1863 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 22
  • Position: #443 / 643
  • 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: 30
  • Position: #494 / 501
  • Number of attempts: 3
Dumb to smart - 97 entries

Turn dumb quote to smart vim's way.

  • Best score: 28
  • Best player score: 39
  • Position: #45 / 55
  • 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: 31
  • Position: #523 / 563
  • 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: 41
  • Position: #503 / 536
  • Number of attempts: 5
Reconstruct the Sentence - 1402 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: 34
  • Position: #373 / 390
  • Number of attempts: 5
Flodder-challenge - 1161 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 46
  • Position: #272 / 316
  • Number of attempts: 1
Simple text editing with Vim - 12415 entries

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

  • Best score: 13
  • Best player score: 24
  • Position: #3043 / 3610
  • Number of attempts: 2
Olivier Bégassat
Twitter2:

entered into 139 challenges

contributed 0 challenges