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

Put a newline after every 10 lines in vim - 287 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #50 / 114
  • Number of attempts: 1
Java to JavaScript - 54 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 64
  • Position: #6 / 18
  • Number of attempts: 2
Wikitext headings to markdown - 302 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 22
  • Position: #18 / 80
  • Number of attempts: 3
hello-world-vimgolf - 811 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #27 / 242
  • Number of attempts: 1
Contribute to keyboard mashing - 420 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #79 / 131
  • Number of attempts: 2
Reordering Lorem Ipsum - 114 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 14
  • Position: #13 / 31
  • Number of attempts: 1
Fill in the chess board - 332 entries

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

  • Best score: 19
  • Best player score: 20
  • Position: #17 / 83
  • Number of attempts: 3
Learn to ask for :help - 277 entries

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

  • Best score: 19
  • Best player score: 24
  • Position: #21 / 64
  • Number of attempts: 3
Plotting some variables in python - 869 entries

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

  • Best score: 34
  • Best player score: 34
  • Position: #28 / 175
  • Number of attempts: 7
Transpose a python matrix - 418 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 33
  • Position: #25 / 84
  • Number of attempts: 1
Create a diamond comment - 183 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 27
  • Position: #6 / 45
  • Number of attempts: 5
Lowercase first characters - 270 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: #16 / 100
  • Number of attempts: 2
Increment number for every 10 lines - 136 entries

The file consists of 2 columns (code and percentage). We need to add 2 more columns with increasing number for 4th column (Xcols) and increment 3rd column (Ycols) only for every 10 lines with reset of 4th column

  • Best score: 25
  • Best player score: 43
  • Position: #23 / 40
  • Number of attempts: 2
Inverting Lines - 1115 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #126 / 309
  • Number of attempts: 1
Generate a very basic Python constructor - 226 entries

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

  • Best score: 38
  • Best player score: 39
  • Position: #22 / 57
  • Number of attempts: 5
Python dataclasses - 520 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 20
  • Position: #56 / 140
  • Number of attempts: 2
Modernise code - 708 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #45 / 162
  • Number of attempts: 3
Staircase - 23 entries

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

  • Best score: 21
  • Best player score: 28
  • Position: #5 / 13
  • Number of attempts: 3
Enumerate Bullets - 156 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: #28 / 40
  • Number of attempts: 4
Put a cross in the square - 101 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 22
  • Position: #18 / 47
  • Number of attempts: 3
swap number pairs - 1357 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #91 / 263
  • Number of attempts: 3
Python: Def to Lambda - 239 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #50 / 88
  • Number of attempts: 2
Turn the x - 205 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 20
  • Position: #25 / 54
  • Number of attempts: 3
Satisfy the go linter - 1811 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: 20
  • Position: #115 / 363
  • Number of attempts: 1
Add quotes to ansible playbook - 657 entries

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

  • Best score: 8
  • Best player score: 10
  • Position: #171 / 211
  • Number of attempts: 1
Simple, Practical, and Common - 32803 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: #2750 / 7246
  • Number of attempts: 5
Swap values - 4415 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #511 / 1236
  • Number of attempts: 3
One number per line - 18318 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1970 / 3774
  • Number of attempts: 15
Swap values inside brackets - 2423 entries

Easy challenge.

  • Best score: 14
  • Best player score: 18
  • Position: #340 / 558
  • Number of attempts: 3
V to the i - 4629 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1463 / 1852
  • Number of attempts: 4
Applying same text modification in several lines - 2720 entries

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

  • Best score: 12
  • Best player score: 17
  • Position: #618 / 809
  • Number of attempts: 4
Swap the operands under comparison - 253 entries

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

  • Best score: 19
  • Best player score: 20
  • Position: #37 / 91
  • Number of attempts: 2
Split line with dots - 2087 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 19
  • Position: #350 / 620
  • Number of attempts: 4
remove lines containing the word "reader" - 3442 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #823 / 1115
  • Number of attempts: 3
Com(m)a Trouble - 3336 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #393 / 750
  • Number of attempts: 3
Box it - 7667 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #439 / 1831
  • Number of attempts: 6
Triangular Numbers - 82 entries

Generate the first 50 triangular numbers.

  • Best score: 18
  • Best player score: 21
  • Position: #17 / 24
  • Number of attempts: 7
Cool or not? - 748 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 19
  • Position: #139 / 214
  • Number of attempts: 4
multiple cursor alternative - 1441 entries

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

  • Best score: 19
  • Best player score: 23
  • Position: #270 / 368
  • Number of attempts: 4
From argument to object - 1258 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: #239 / 416
  • Number of attempts: 2
Two pairs of cluster of letters creates word - 706 entries

Clean and group.

  • Best score: 17
  • Best player score: 22
  • Position: #116 / 165
  • Number of attempts: 5
Every other line - 2802 entries

AaAaAaA

  • Best score: 12
  • Best player score: 17
  • Position: #508 / 681
  • Number of attempts: 3
Copy three lines - 2778 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #242 / 621
  • Number of attempts: 5
Convert Application Output to CSV - 171 entries

Change the application output to comma-separated values

  • Best score: 17
  • Best player score: 20
  • Position: #43 / 48
  • Number of attempts: 5
Array propagate - 305 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 23
  • Position: #24 / 107
  • Number of attempts: 2
Extract argument from function - 2207 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #375 / 726
  • Number of attempts: 1
Search and Replace 0 - 4608 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #680 / 1527
  • Number of attempts: 2
Preferably without multi-cursor plugin - 466 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: 34
  • Position: #50 / 115
  • Number of attempts: 7
Number Sort - 283 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: #126 / 151
  • Number of attempts: 1
That hyphen - 2478 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 10
  • Position: #272 / 677
  • Number of attempts: 5
comment and uncomment code inline - 981 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: 10
  • Position: #198 / 293
  • Number of attempts: 2
Letterbox - 86 entries

Make a box!

  • Best score: 35
  • Best player score: 46
  • Position: #10 / 23
  • Number of attempts: 3
Flip the bit - 104 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 9
  • Position: #34 / 63
  • Number of attempts: 2
The D a n k Side of the Moon - 40 entries

You're making a vaporwave cover of The Dark Side of the Moon. So for the tracklisting, you want to: 1. Change the track names to v a p o r c a s e 2. Double the track lengths (since you're slowing them down). Well... let's just double the minutes.

  • Best score: 40
  • Best player score: 51
  • Position: #10 / 14
  • Number of attempts: 2
Just the middle - 11102 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1476 / 4100
  • Number of attempts: 4
Team names - 1771 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 17
  • Position: #315 / 567
  • Number of attempts: 4
Make HTML List - 985 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 36
  • Position: #73 / 260
  • Number of attempts: 3
Learn some german verbs - 495 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: 21
  • Position: #51 / 123
  • Number of attempts: 4
Todo list specification - 362 entries

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

  • Best score: 37
  • Best player score: 37
  • Position: #92 / 166
  • Number of attempts: 1
Remember VimGolf Rules ! - 226 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 7
  • Position: #37 / 124
  • Number of attempts: 1
Missing Library and a Typo - 829 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: 15
  • Best player score: 16
  • Position: #97 / 203
  • Number of attempts: 3
Basic renumbering - 5419 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #256 / 1222
  • Number of attempts: 3
Simple addition - 290 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: #67 / 106
  • Number of attempts: 2
Adam's challenge - 912 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: 19
  • Position: #121 / 255
  • Number of attempts: 6
Create a table - 295 entries

Convert the given input into a formatted table

  • Best score: 16
  • Best player score: 17
  • Position: #52 / 97
  • Number of attempts: 2
Fiddle percentages into real numbers - 794 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: 13
  • Position: #151 / 270
  • Number of attempts: 3
ninja substitution - 1278 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 16
  • Position: #143 / 245
  • Number of attempts: 4
Vice versa - 7491 entries

Little role switching.

  • Best score: 12
  • Best player score: 14
  • Position: #940 / 2030
  • Number of attempts: 3
C Reformatting - 680 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 32
  • Position: #47 / 157
  • Number of attempts: 5
Order and join - 859 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Position: #127 / 237
  • Number of attempts: 5
Paragraph breaks - 480 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 11
  • Position: #82 / 159
  • Number of attempts: 3
comments galore - 967 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #295 / 409
  • Number of attempts: 3
Scrambled numbers - 772 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 18
  • Position: #43 / 179
  • Number of attempts: 3
Alsa configuration - 481 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 22
  • Position: #50 / 123
  • Number of attempts: 3
Align commas - 1021 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: #91 / 233
  • Number of attempts: 11
Hello ${world} - 292 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 24
  • Position: #35 / 91
  • Number of attempts: 1
Python challenge - 140 entries

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

  • Best score: 31
  • Best player score: 33
  • Position: #11 / 41
  • Number of attempts: 4
One to Ten - 2078 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: #339 / 637
  • Number of attempts: 2
Change part of a function name in multiple occurrences - 595 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: 15
  • Position: #115 / 190
  • Number of attempts: 2
Build a six - 267 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 22
  • Position: #56 / 89
  • Number of attempts: 2
Increment each number - 946 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 24
  • Position: #197 / 233
  • Number of attempts: 5
snowflake fractal - 39 entries

From step 0 to step 3 of a fractal

  • Best score: 26
  • Best player score: 36
  • Position: #10 / 17
  • Number of attempts: 2
Delete to the end of the current line - 711 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #245 / 348
  • Number of attempts: 2
Put the months in order - 915 entries

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

  • Best score: 20
  • Best player score: 37
  • Position: #71 / 155
  • Number of attempts: 4
move titles next to url, in quotes - 481 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 20
  • Position: #24 / 127
  • Number of attempts: 8
Array transposition - 2289 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 20
  • Position: #217 / 429
  • Number of attempts: 5
convert yml into java pojo field - 801 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: 32
  • Position: #149 / 213
  • Number of attempts: 1
Mirror Symmetry - 753 entries

Add backslashes.

  • Best score: 7
  • Best player score: 7
  • Position: #90 / 258
  • Number of attempts: 1
unknown command - 143 entries

I want change 5 words

  • Best score: 7
  • Best player score: 7
  • Position: #59 / 72
  • Number of attempts: 1
From A to B - 542 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 16
  • Position: #54 / 151
  • Number of attempts: 3
Cartesian product - 207 entries

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

  • Best score: 24
  • Best player score: 30
  • Position: #27 / 87
  • Number of attempts: 1
Simple format (2) - 306 entries

try again!

  • Best score: 23
  • Best player score: 33
  • Position: #42 / 64
  • Number of attempts: 10
Collect List - 4168 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #514 / 1163
  • Number of attempts: 6
camel riding - 741 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 15
  • Position: #72 / 265
  • Number of attempts: 4
Space out the alphabet - 1573 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Position: #108 / 429
  • Number of attempts: 3
Fix the XML - 956 entries

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

  • Best score: 18
  • Best player score: 18
  • Position: #61 / 277
  • Number of attempts: 3
Condensed Cases - 737 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: 13
  • Position: #94 / 227
  • Number of attempts: 2
I forgot quotes - 15704 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1118 / 4104
  • Number of attempts: 10
-a-b-c- - 3104 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Position: #419 / 1107
  • Number of attempts: 4
Count both ways - 936 entries

Right AND down.

  • Best score: 13
  • Best player score: 13
  • Position: #55 / 335
  • Number of attempts: 1
Gray area - 680 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #122 / 254
  • Number of attempts: 2
Do you demand a shrubbery? - 1091 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 16
  • Position: #97 / 289
  • Number of attempts: 2
Don't know what this is - 1935 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: #231 / 567
  • Number of attempts: 4
Two become one - 703 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 26
  • Position: #38 / 202
  • Number of attempts: 4
Where should I put the Newline? - 835 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #215 / 419
  • Number of attempts: 1
Mess in revision history - 1122 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 18
  • Position: #91 / 241
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10522 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2468 / 3632
  • Number of attempts: 2
attr_aligner - 3378 entries

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

  • Best score: 19
  • Best player score: 19
  • Position: #173 / 680
  • Number of attempts: 10
Letter case trickery - 1535 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: #164 / 496
  • Number of attempts: 6
quotes inside quotes - 3017 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: 15
  • Position: #489 / 1041
  • Number of attempts: 5
Words in parens - 12703 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1148 / 3909
  • Number of attempts: 8
Hole-in-one - 964 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: 16
  • Position: #91 / 295
  • Number of attempts: 1
Resort and deup a CSV list - 135 entries

I'm always adding items to a sorted list. There has to be a better way dedup and resort the lists. There are multiple lists with varying lengths to discourage manual sorting. Also Australia's animals are weird.

  • Best score: 44
  • Best player score: 46
  • Position: #13 / 37
  • Number of attempts: 7
Pascal's Triangle - 27 entries

Generate the first 17 left-justified rows of Pascal's triangle.

  • Best score: 36
  • Best player score: 43
  • Position: #10 / 12
  • Number of attempts: 1
Santa's naughty / nice list - 77 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: 42
  • Position: #7 / 23
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1474 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: #234 / 416
  • Number of attempts: 1
Array Transposition - 168 entries

Transpose four arrays into two.

  • Best score: 27
  • Best player score: 32
  • Position: #26 / 50
  • Number of attempts: 2
Saving the hashes(#) - 1943 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: 23
  • Position: #127 / 464
  • Number of attempts: 3
Let's play some Ivmgolf - 989 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #312 / 411
  • Number of attempts: 1
Vertical Limit - 2352 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #171 / 711
  • Number of attempts: 7
replacing each line of a block selection - 2775 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 19
  • Position: #214 / 730
  • Number of attempts: 5
Switch function arguments - 1961 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #310 / 621
  • Number of attempts: 3
Append semicolon after expressions - 935 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #241 / 380
  • Number of attempts: 1
switch variable - 4894 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #976 / 1696
  • Number of attempts: 6
Make it more readable - 1878 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Position: #190 / 617
  • Number of attempts: 2
remove dupes from array - 1268 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: #81 / 323
  • Number of attempts: 2
Numbering a List - 1802 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #66 / 618
  • Number of attempts: 1
Ruby 1.9 hashes - 1130 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: #173 / 376
  • Number of attempts: 2
Shebangs for all - 1758 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: #146 / 464
  • Number of attempts: 4
The Cake is a Lie - 1181 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Position: #363 / 482
  • Number of attempts: 3
Change the content of a string - 1314 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #193 / 509
  • Number of attempts: 2
Sort and add attributes - 1152 entries

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

  • Best score: 33
  • Best player score: 33
  • Position: #237 / 473
  • Number of attempts: 2
Reconstruct the Sentence - 1093 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: #201 / 337
  • Number of attempts: 2
Whitespace, empty lines and tabs - 2858 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #121 / 649
  • Number of attempts: 8
Simple text editing with Vim - 11522 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1834 / 3380
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 5908 entries

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

  • Best score: 32
  • Best player score: 38
  • Position: #610 / 1462
  • Number of attempts: 2
Jean George
Twitter:

entered into 136 challenges

contributed 0 challenges