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

Create json from a .env file - 802 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 48
  • Position: #59 / 181
  • Number of attempts: 5
YAML to dotenv - 1000 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 22
  • Position: #94 / 217
  • Number of attempts: 5
Swap columns and transform to CSV format - 321 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #67 / 119
  • Number of attempts: 3
New teacher - 1376 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 22
  • Position: #76 / 287
  • Number of attempts: 4
Remove line numbers - 747 entries

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

  • Best score: 9
  • Best player score: 16
  • Position: #124 / 200
  • Number of attempts: 2
Find fix point of cos - 1432 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: #264 / 424
  • Number of attempts: 5
Filter number combinations that don't add to 11 - 417 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: 30
  • Position: #99 / 120
  • Number of attempts: 2
Reformat symbols in list - 1635 entries

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

  • Best score: 24
  • Best player score: 37
  • Position: #253 / 352
  • Number of attempts: 2
delete swap - 1809 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #388 / 564
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1277 entries

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

  • Best score: 29
  • Best player score: 36
  • Position: #87 / 274
  • Number of attempts: 3
hello-world-vimgolf - 2506 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #427 / 713
  • Number of attempts: 1
Python dataclasses - 1215 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 36
  • Position: #258 / 301
  • Number of attempts: 1
RUST Cargo.toml version to last - 363 entries

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

  • Best score: 16
  • Best player score: 23
  • Position: #80 / 102
  • Number of attempts: 1
swap number pairs - 2128 entries

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

  • Best score: 16
  • Best player score: 24
  • Position: #185 / 388
  • Number of attempts: 1
HS Final exam vimgolf - 912 entries

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

  • Best score: 21
  • Best player score: 27
  • Position: #133 / 240
  • Number of attempts: 6
Extend shell script - 138 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 52
  • Position: #25 / 48
  • Number of attempts: 1
Rural Post - 4567 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #679 / 1114
  • Number of attempts: 4
Satisfy the go linter - 2450 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: 25
  • Position: #288 / 485
  • Number of attempts: 2
Add quotes to ansible playbook - 1015 entries

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

  • Best score: 8
  • Best player score: 11
  • Position: #294 / 319
  • Number of attempts: 3
Multiline to Single Line - 737 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #263 / 313
  • Number of attempts: 1
Separate the lines - 191 entries

Every other line is mixed up. Separate them into their original texts.

  • Best score: 11
  • Best player score: 12
  • Position: #62 / 95
  • Number of attempts: 3
Swap values inside brackets - 2521 entries

Easy challenge.

  • Best score: 13
  • Best player score: 19
  • Position: #390 / 585
  • Number of attempts: 6
Unsemantic linewrapping - 934 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: 39
  • Position: #232 / 233
  • Number of attempts: 1
Applying same text modification in several lines - 2907 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #501 / 860
  • Number of attempts: 7
Add string initializers to an enum - 884 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 22
  • Position: #105 / 261
  • Number of attempts: 9
SCREAMING_SNAKE_CASE to Title Case - 1240 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: #184 / 257
  • Number of attempts: 2
Swap the operands under comparison - 311 entries

Swap the operands under comparison to prevent null pointer exception (at least in java)

  • Best score: 19
  • Best player score: 19
  • Position: #28 / 104
  • Number of attempts: 7
Add semicolons - 10899 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #771 / 3078
  • Number of attempts: 8
Bad Copy Syntax - 2052 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #309 / 534
  • Number of attempts: 2
remove lines containing the word "reader" - 3614 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #510 / 1173
  • Number of attempts: 4
Com(m)a Trouble - 3907 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #463 / 886
  • Number of attempts: 5
Wrap the text of an email message to 79 characters - 822 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #328 / 429
  • Number of attempts: 1
Extract wireshark capture filter - 220 entries

Extract wireshark capture filter from IP plan

  • Best score: 25
  • Best player score: 34
  • Position: #63 / 74
  • Number of attempts: 2
Box it - 7954 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #820 / 1886
  • Number of attempts: 15
Tables, Functions, Sprocs - 141 entries

In order to load some scripts into my database in the correct order I need to load tables first (t_), then functions (fn_), then stored procedures (sp_). The order of the t_ lines and the order of the sp_ lines should also match. Reorder the lines so they will load correctly.

  • Best score: 10
  • Best player score: 13
  • Position: #47 / 49
  • Number of attempts: 2
Cool or not? - 841 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #125 / 232
  • Number of attempts: 5
multiple cursor alternative - 1547 entries

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

  • Best score: 19
  • Best player score: 25
  • Position: #314 / 385
  • Number of attempts: 5
From argument to object - 1524 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #276 / 463
  • Number of attempts: 5
Two pairs of cluster of letters creates word - 751 entries

Clean and group.

  • Best score: 17
  • Best player score: 28
  • Position: #154 / 179
  • Number of attempts: 2
Array propagate - 343 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 28
  • Position: #83 / 121
  • Number of attempts: 4
Search and Replace 0 - 5007 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #751 / 1631
  • Number of attempts: 3
Preferably without multi-cursor plugin - 547 entries

Originally asked as question on reddit by kpthunder: https://www.reddit.com/r/vim/comments/9fvsro/what_is_the_most_efficient_way_to_go_about/

  • Best score: 30
  • Best player score: 36
  • Position: #82 / 131
  • Number of attempts: 5
Number Sort - 319 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: #145 / 170
  • Number of attempts: 2
comment and uncomment code inline - 1151 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: #168 / 328
  • Number of attempts: 5
Flip the bit - 135 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Position: #42 / 76
  • Number of attempts: 3
Team names - 1848 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 19
  • Position: #470 / 592
  • Number of attempts: 2
Learn some german verbs - 541 entries

The list needs to be structured so we can print in verbatim and feel ok about how it looks.

  • Best score: 21
  • Best player score: 22
  • Position: #66 / 134
  • Number of attempts: 8
Un"finnish"ed Work - 119 entries

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

  • Best score: 14
  • Best player score: 15
  • Position: #41 / 61
  • Number of attempts: 3
Todo list specification - 403 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 40
  • Position: #166 / 181
  • Number of attempts: 2
Sort yaml structures alphabetically by root key names - 51 entries

sometimes we want to sort structures alphabetically in yaml files

  • Best score: 31
  • Best player score: 35
  • Position: #12 / 21
  • Number of attempts: 2
Python Hello World! Reformatting - 1006 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: 41
  • Position: #78 / 383
  • Number of attempts: 6
For all cases. - 168 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Position: #95 / 108
  • Number of attempts: 5
Remember VimGolf Rules ! - 268 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #135 / 145
  • Number of attempts: 2
Stairstep digits - 407 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 14
  • Position: #141 / 149
  • Number of attempts: 3
Format java properties - 89 entries

Format java properties to a different format. The value which is the string following the first '=' cannot & should not change. All periods in the key get replaced with an underscore "_" and get a prefix of "b_".

  • Best score: 27
  • Best player score: 41
  • Position: #34 / 36
  • Number of attempts: 1
Back to the roots - 66 entries

Johnny has a file with more integers. He wants to change each number with its square root. Can you help him?

  • Best score: 20
  • Best player score: 23
  • Position: #34 / 39
  • Number of attempts: 3
Flatten repo - 30 entries

For each git repository (<project> tag) translate name attribute to flatten directory structure. Add path attribute if missing (because checkout hierarchy must be kept). #xml

  • Best score: 43
  • Best player score: 67
  • Position: #11 / 12
  • Number of attempts: 1
Missing Library and a Typo - 920 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 14
  • Best player score: 16
  • Position: #107 / 219
  • Number of attempts: 6
Simple addition - 332 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #63 / 124
  • Number of attempts: 1
create arrows in a list - 128 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 67
  • Position: #77 / 77
  • Number of attempts: 1
Adam's challenge - 1008 entries

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

  • Best score: 18
  • Best player score: 18
  • Position: #104 / 275
  • Number of attempts: 7
Create Leading Zeros - 245 entries

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

  • Best score: 23
  • Best player score: 45
  • Position: #62 / 84
  • Number of attempts: 3
sort python functions and methods alphabetically - 29 entries

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

  • Best score: 20
  • Best player score: 26
  • Position: #16 / 16
  • Number of attempts: 1
42-header - 47 entries

Rush 42mexican-standoff at 42 school

  • Best score: 22
  • Best player score: 26
  • Position: #9 / 17
  • Number of attempts: 4
Create a table - 333 entries

Convert the given input into a formatted table

  • Best score: 16
  • Best player score: 29
  • Position: #98 / 106
  • Number of attempts: 1
Nesting SASS - 278 entries

Move a block inside another block and indent it

  • Best score: 9
  • Best player score: 15
  • Position: #69 / 98
  • Number of attempts: 10
ninja substitution - 1424 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 16
  • Position: #162 / 268
  • Number of attempts: 4
Hello ${world} - 327 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 38
  • Position: #78 / 98
  • Number of attempts: 2
Python challenge - 180 entries

Change the types of the variables in the list from str to float, while keeping the truncation.

  • Best score: 31
  • Best player score: 43
  • Position: #25 / 48
  • Number of attempts: 2
One to Ten - 2240 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: #374 / 681
  • Number of attempts: 5
Change part of a function name in multiple occurrences - 672 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 14
  • Position: #72 / 210
  • Number of attempts: 9
Line under headers - 2072 entries

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

  • Best score: 24
  • Best player score: 31
  • Position: #314 / 510
  • Number of attempts: 2
Build a six - 306 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 36
  • Position: #87 / 99
  • Number of attempts: 1
Increment each number - 1041 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 38
  • Position: #237 / 254
  • Number of attempts: 2
Join 'em - 252 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #27 / 152
  • Number of attempts: 1
Delete to the end of the current line - 849 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #280 / 407
  • Number of attempts: 2
Song Transcription Oops - 244 entries

When transcribing vocal music to Canjo Tab you can start by finding the lowest note and assigning that to zero and working your way up from there. However, without fail, I tend to miscount the notes and when I am near done I find a lower note. I mark this with a "z". This means I have to increase all the previous ones by 1. just a sting of numbers :)

  • Best score: 15
  • Best player score: 33
  • Position: #73 / 79
  • Number of attempts: 1
change parenthesis - 299 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 9
  • Position: #97 / 162
  • Number of attempts: 3
Remove quotes after first field - 383 entries

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

  • Best score: 16
  • Best player score: 25
  • Position: #72 / 92
  • Number of attempts: 3
Put the months in order - 979 entries

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

  • Best score: 20
  • Best player score: 70
  • Position: #159 / 165
  • Number of attempts: 1
Add Go XML to structure tags - 182 entries

The Go programming language can directly map XML to structure fields. Add the correct XML tag after each field.

  • Best score: 23
  • Best player score: 26
  • Position: #28 / 73
  • Number of attempts: 7
move titles next to url, in quotes - 549 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 21
  • Position: #66 / 145
  • Number of attempts: 10
Array transposition - 2430 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 23
  • Position: #274 / 451
  • Number of attempts: 3
convert yml into java pojo field - 866 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 29
  • Position: #94 / 229
  • Number of attempts: 7
unknown command - 169 entries

I want change 5 words

  • Best score: 7
  • Best player score: 36
  • Position: #83 / 89
  • Number of attempts: 1
Swap assigned value - 664 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 11
  • Position: #198 / 258
  • Number of attempts: 3
Cartesian product - 266 entries

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

  • Best score: 24
  • Best player score: 33
  • Position: #56 / 99
  • Number of attempts: 2
VimGolfNight - 575 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 16
  • Position: #328 / 352
  • Number of attempts: 3
Refactoring useless Method away - 117 entries

Real-life challenge, convert a bunch of ifs to a switch statement

  • Best score: 47
  • Best player score: 74
  • Position: #29 / 35
  • Number of attempts: 1
Mess in revision history - 1210 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 36
  • Position: #219 / 254
  • Number of attempts: 5
Write Setters and Getters for PHP - 89 entries

Just simple automation of writing Setters and Getters like Doctrine might use.

  • Best score: 102
  • Best player score: 139
  • Position: #18 / 34
  • Number of attempts: 1
Going underground.... - 357 entries

Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...

  • Best score: 22
  • Best player score: 29
  • Position: #68 / 129
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10699 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2525 / 3695
  • Number of attempts: 4
attr_aligner - 3525 entries

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

  • Best score: 19
  • Best player score: 47
  • Position: #671 / 706
  • Number of attempts: 1
Ninjas Leaderboard - 102 entries

The two lines in "Start file" has an obfuscated email address. Second line give an index (from 1 to 30) to the chars list of the first line, for example, the first char of email (n) is in position 25, second char (i) is in position 19 and s.o.

  • Best score: 25
  • Best player score: 35
  • Position: #35 / 42
  • Number of attempts: 3
Letter case trickery - 1644 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: 10
  • Position: #175 / 520
  • Number of attempts: 11
quotes inside quotes - 3182 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: 16
  • Position: #669 / 1085
  • Number of attempts: 4
Pairs of numbers - 364 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: 50
  • Position: #115 / 137
  • Number of attempts: 1
Assign list - 193 entries

Assign list elements to matrix

  • Best score: 30
  • Best player score: 46
  • Position: #36 / 62
  • Number of attempts: 1
Delete unwanted lines - 431 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #201 / 234
  • Number of attempts: 4
Coordinates placeholder - 77 entries

Place coordinates instead of target search.

  • Best score: 22
  • Best player score: 28
  • Position: #38 / 40
  • Number of attempts: 1
fib.c cleanup - 71 entries

cleanup the file

  • Best score: 15
  • Best player score: 21
  • Position: #54 / 56
  • Number of attempts: 3
Block Fun 1 - 211 entries

Manipulate the columns to produce desired result.

  • Best score: 14
  • Best player score: 25
  • Position: #66 / 76
  • Number of attempts: 1
Groups magic - 162 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: #73 / 95
  • Number of attempts: 1
Readable Rubyhash - 274 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: 50
  • Position: #94 / 97
  • Number of attempts: 1
Santa's naughty / nice list - 91 entries

Christmas is here and Santa hasn't decided who's naughty or nice yet. He's given a list of names to his programmer friend to quickly split the children into naughty and nice. Hint: There's a hidden pattern that might be familiar.

  • Best score: 39
  • Best player score: 69
  • Position: #26 / 27
  • Number of attempts: 1
A simple change - 474 entries

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

  • Best score: 12
  • Best player score: 22
  • Position: #184 / 195
  • Number of attempts: 2
Extract text from xml - 128 entries

Extract text from xml file (ignoring commented out elements) and create a one line regex.

  • Best score: 28
  • Best player score: 58
  • Position: #41 / 47
  • Number of attempts: 1
lamb had a little Mary - 637 entries

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

  • Best score: 16
  • Best player score: 48
  • Position: #163 / 174
  • Number of attempts: 1
Chucking wood - 136 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: 51
  • Best player score: 84
  • Position: #50 / 51
  • Number of attempts: 1
Array Transposition - 202 entries

Transpose four arrays into two.

  • Best score: 27
  • Best player score: 38
  • Position: #32 / 57
  • Number of attempts: 1
Inconsistent real estate paste - 217 entries

Format a hand-typed real estate listing that uses inconsistent punctuation into four sections

  • Best score: 24
  • Best player score: 80
  • Position: #56 / 59
  • Number of attempts: 1
Vertical Limit - 2574 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #261 / 761
  • Number of attempts: 10
Generate English Alphabets - 502 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 24
  • Position: #70 / 209
  • Number of attempts: 4
Insert a Markdown link - 461 entries

Put a link in a markdown document, using the after-the-paragraph format.

  • Best score: 22
  • Best player score: 26
  • Position: #102 / 152
  • Number of attempts: 2
The holy-grail may help - 389 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #166 / 215
  • Number of attempts: 2
Ruby 1.9 hashes - 1260 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: 12
  • Position: #116 / 410
  • Number of attempts: 7
Shebangs for all - 2049 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: 13
  • Position: #211 / 523
  • Number of attempts: 10
A Simple One - 1064 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: #593 / 670
  • Number of attempts: 2
Table Reshuffle - 450 entries

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

  • Best score: 22
  • Best player score: 36
  • Position: #97 / 144
  • Number of attempts: 2
Reverse and count - 486 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: #20 / 179
  • Number of attempts: 6
Ruby 1.9 compat - 640 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: 15
  • Position: #122 / 236
  • Number of attempts: 6
Increment, increment, increment.... - 701 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #75 / 413
  • Number of attempts: 1
Indentation - 552 entries

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

  • Best score: 20
  • Best player score: 30
  • Position: #129 / 181
  • Number of attempts: 2
Hatsuyume - 548 entries

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

  • Best score: 15
  • Best player score: 16
  • Position: #19 / 189
  • Number of attempts: 6
The Cake is a Lie - 1374 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Position: #400 / 534
  • Number of attempts: 4
Fix the Haiku - 320 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: 41
  • Position: #64 / 115
  • Number of attempts: 7
Context insensitive completion 0 - 590 entries

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

  • Best score: 6
  • Best player score: 7
  • Position: #133 / 249
  • Number of attempts: 5
Compile C - 441 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 33
  • Position: #136 / 143
  • Number of attempts: 2
Make Fancy Header - 1070 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 27
  • Position: #324 / 348
  • Number of attempts: 2
Linear congruential generator - 143 entries

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

  • Best score: 28
  • Best player score: 108
  • Position: #52 / 54
  • Number of attempts: 1
Reformat some Python - 627 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 35
  • Position: #67 / 240
  • Number of attempts: 4
Reformat a C golf submission - 614 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: 42
  • Position: #183 / 210
  • Number of attempts: 2
Reverse characters in a line - 778 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: 19
  • Position: #200 / 268
  • Number of attempts: 2
PEP8 Python Wrapping Comments and Code - 219 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: 44
  • Position: #63 / 69
  • Number of attempts: 2
Reformat most common surnames - 757 entries

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

  • Best score: 23
  • Best player score: 25
  • Position: #70 / 219
  • Number of attempts: 9
Change the content of a string - 1659 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #243 / 612
  • Number of attempts: 4
Sort and add attributes - 1507 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #301 / 584
  • Number of attempts: 3
Add fold markers to a .c file - 664 entries

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

  • Best score: 30
  • Best player score: 40
  • Position: #150 / 191
  • Number of attempts: 2
Reconstruct the Sentence - 1651 entries

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

  • Best score: 19
  • Best player score: 19
  • Position: #6 / 435
  • Number of attempts: 10
Whitespace, empty lines and tabs - 3795 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #184 / 816
  • Number of attempts: 13
Flodder-challenge - 1369 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 28
  • Position: #80 / 352
  • Number of attempts: 13
Simple text editing with Vim - 13134 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #745 / 3776
  • Number of attempts: 6
Karan
Github:

entered into 143 challenges

contributed 0 challenges