Played Challenges
Swap values - 4639 entries
Well, swap the values...
- Best score: 11
- Best player score: 16
- Position: #1074 / 1273
- Number of attempts: 1
One number per line - 18751 entries
Just give me the numbers.
- Best score: 14
- Best player score: 20
- Position: #2260 / 3869
- Number of attempts: 2
V to the i - 4813 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 8
- Position: #1304 / 1897
- Number of attempts: 1
Add semicolons - 10877 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 11
- Position: #1186 / 3070
- Number of attempts: 2
Split line with dots - 2154 entries
This line is too long, split it.
- Best score: 15
- Best player score: 21
- Position: #435 / 635
- Number of attempts: 1
remove lines containing the word "reader" - 3597 entries
easy stuff
- Best score: 9
- Best player score: 9
- Position: #332 / 1167
- Number of attempts: 3
Box it - 7915 entries
Create a box around a line.
- Best score: 21
- Best player score: 21
- Position: #242 / 1880
- Number of attempts: 5
multiple cursor alternative - 1521 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: 19
- Position: #57 / 381
- Number of attempts: 5
From argument to object - 1509 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: #97 / 459
- Number of attempts: 3
Copy three lines - 2875 entries
If the site is up (by some miracle), make the text under every header identical.
- Best score: 13
- Best player score: 13
- Position: #96 / 641
- Number of attempts: 7
Search and Replace 0 - 5002 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #517 / 1629
- Number of attempts: 2
Number Sort - 314 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: #37 / 166
- Number of attempts: 2
That hyphen - 2595 entries
"vim vi improved"
- Best score: 9
- Best player score: 9
- Position: #179 / 701
- Number of attempts: 2
comment and uncomment code inline - 1124 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: #95 / 323
- Number of attempts: 2
Just the middle - 11477 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 7
- Position: #1317 / 4206
- Number of attempts: 3
Basic renumbering - 5675 entries
Renumbering Basic.
- Best score: 11
- Best player score: 11
- Position: #119 / 1268
- Number of attempts: 1
comments galore - 1045 entries
Basic comment reformatting
- Best score: 10
- Best player score: 10
- Position: #248 / 424
- Number of attempts: 2
Generate a list of numbers - 295 entries
Please generate list of numbers from 1 to 20.
- Best score: 14
- Best player score: 15
- Position: #108 / 140
- Number of attempts: 1
One to Ten - 2225 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: #221 / 676
- Number of attempts: 4
Collect List - 4305 entries
Convert to comma separated list.
- Best score: 12
- Best player score: 12
- Position: #373 / 1191
- Number of attempts: 2
I forgot quotes - 16014 entries
Oops.
- Best score: 10
- Best player score: 10
- Position: #760 / 4188
- Number of attempts: 4
-a-b-c- - 3216 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 13
- Position: #236 / 1138
- Number of attempts: 3
Don't know what this is - 2024 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: 11
- Position: #98 / 586
- Number of attempts: 6
Words in parens - 12966 entries
We should all ace this, right?
- Best score: 13
- Best player score: 14
- Position: #1052 / 3968
- 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: 26
- Position: #207 / 480
- Number of attempts: 3
switch variable - 5079 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 14
- Position: #1424 / 1749
- Number of attempts: 1
Shebangs for all - 2016 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: #152 / 518
- Number of attempts: 6
Simple text editing with Vim - 12929 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 18
- Position: #2661 / 3723
- Number of attempts: 2