Played Challenges
Simple, Practical, and Common - 33616 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: 22
- Position: #1386 / 7420
- Number of attempts: 17
One number per line - 18727 entries
Just give me the numbers.
- Best score: 14
- Best player score: 16
- Position: #890 / 3864
- Number of attempts: 13
V to the i - 4802 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 7
- Position: #575 / 1893
- Number of attempts: 5
Applying same text modification in several lines - 2880 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 14
- Position: #335 / 851
- Number of attempts: 5
Swap the operands under comparison - 297 entries
Swap the operands under comparison to prevent null pointer exception (at least in java)
- Best score: 19
- Best player score: 19
- Position: #6 / 101
- Number of attempts: 7
Split line with dots - 2144 entries
This line is too long, split it.
- Best score: 15
- Best player score: 15
- Position: #140 / 634
- Number of attempts: 7
remove lines containing the word "reader" - 3586 entries
easy stuff
- Best score: 9
- Best player score: 14
- Position: #1021 / 1162
- Number of attempts: 3
Com(m)a Trouble - 3823 entries
Someone was real stupid when placing his commas. Can you fix it?
- Best score: 12
- Best player score: 19
- Position: #620 / 865
- Number of attempts: 3
Box it - 7905 entries
Create a box around a line.
- Best score: 21
- Best player score: 26
- Position: #1056 / 1876
- Number of attempts: 9
From argument to object - 1508 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: 17
- Position: #100 / 458
- Number of attempts: 5
Every other line - 2910 entries
AaAaAaA
- Best score: 12
- Best player score: 13
- Position: #230 / 703
- Number of attempts: 8
Copy three lines - 2872 entries
If the site is up (by some miracle), make the text under every header identical.
- Best score: 13
- Best player score: 13
- Position: #100 / 640
- Number of attempts: 10
Array propagate - 338 entries
Complete the array with the keys as part of the value
- Best score: 23
- Best player score: 23
- Position: #14 / 119
- Number of attempts: 6
Extract argument from function - 2357 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #204 / 753
- Number of attempts: 7
Search and Replace 0 - 4989 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #520 / 1624
- Number of attempts: 3
That hyphen - 2595 entries
"vim vi improved"
- Best score: 9
- Best player score: 9
- Position: #181 / 701
- Number of attempts: 8
comment and uncomment code inline - 1122 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: #98 / 322
- Number of attempts: 8
Just the middle - 11454 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #2683 / 4197
- Number of attempts: 7
Team names - 1836 entries
The team names are misspelled.
- Best score: 16
- Best player score: 21
- Position: #513 / 588
- Number of attempts: 1
Remember VimGolf Rules ! - 261 entries
Rules, ... and don't forget !
- Best score: 7
- Best player score: 8
- Position: #94 / 141
- Number of attempts: 2
Basic renumbering - 5648 entries
Renumbering Basic.
- Best score: 11
- Best player score: 21
- Position: #926 / 1264
- Number of attempts: 12
Create a table - 332 entries
Convert the given input into a formatted table
- Best score: 16
- Best player score: 16
- Position: #31 / 105
- Number of attempts: 15
Vice versa - 7907 entries
Little role switching.
- Best score: 12
- Best player score: 12
- Position: #377 / 2128
- Number of attempts: 8
comments galore - 1045 entries
Basic comment reformatting
- Best score: 10
- Best player score: 10
- Position: #250 / 424
- Number of attempts: 7
Align commas - 1095 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: 15
- Position: #126 / 246
- Number of attempts: 11
Python challenge - 172 entries
Change the types of the variables in the list from str to float, while keeping the truncation.
- Best score: 31
- Best player score: 35
- Position: #20 / 46
- Number of attempts: 4
One to Ten - 2219 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: 38
- Position: #670 / 672
- Number of attempts: 1
Build a six - 294 entries
Just enjoy building "a" floors...
- Best score: 22
- Best player score: 31
- Position: #83 / 95
- Number of attempts: 1
Array transposition - 2417 entries
Transpose two arrays into one.
- Best score: 16
- Best player score: 17
- Position: #124 / 448
- Number of attempts: 20
Collect List - 4298 entries
Convert to comma separated list.
- Best score: 12
- Best player score: 12
- Position: #379 / 1190
- Number of attempts: 7
Space out the alphabet - 1657 entries
Put 3 spaces between adjacent letters.
- Best score: 15
- Best player score: 16
- Position: #117 / 444
- Number of attempts: 16
Fix the XML - 1039 entries
The challenge consists in having a valid xml from an incomplete source.
- Best score: 18
- Best player score: 18
- Position: #52 / 290
- Number of attempts: 10
I forgot quotes - 15983 entries
Oops.
- Best score: 10
- Best player score: 15
- Position: #2243 / 4180
- Number of attempts: 10
-a-b-c- - 3213 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 13
- Position: #238 / 1137
- Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10663 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #1280 / 3683
- Number of attempts: 3
attr_aligner - 3520 entries
Two attr keywords. Two separate indentations. Align the colons.
- Best score: 19
- Best player score: 19
- Position: #145 / 702
- Number of attempts: 19
Letter case trickery - 1630 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: 9
- Position: #21 / 518
- Number of attempts: 15
quotes inside quotes - 3159 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: #295 / 1078
- Number of attempts: 9
Words in parens - 12935 entries
We should all ace this, right?
- Best score: 13
- Best player score: 16
- Position: #2466 / 3963
- Number of attempts: 3
Saving the hashes(#) - 2063 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: #56 / 480
- Number of attempts: 14
Switch function arguments - 2139 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 11
- Position: #154 / 663
- Number of attempts: 10
Ugly spreadsheet copy/paste to CSV - 1009 entries
convert an ugly spreadsheet copy/paste into a CSV format.
- Best score: 19
- Best player score: 34
- Position: #102 / 193
- Number of attempts: 15
Make it more readable - 2005 entries
Insert blank lines to make it more organized and readable
- Best score: 13
- Best player score: 15
- Position: #306 / 650
- Number of attempts: 6
A Simple One - 1050 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: #476 / 664
- Number of attempts: 1
Reverse Simple Deletion - 847 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 12
- Position: #336 / 458
- Number of attempts: 2
Whitespace, empty lines and tabs - 3665 entries
Convert tabs to spaces, strip empty lines and trailing whitespace.
- Best score: 16
- Best player score: 17
- Position: #128 / 787
- Number of attempts: 13
Reformat/Refactor a Golfer Class - 6982 entries
A simple case of removing unneeded code and fixing broken indentation.
- Best score: 28
- Best player score: 50
- Position: #1389 / 1706
- Number of attempts: 2