Played Challenges
Swap columns and transform to CSV format - 207 entries
Turn this spreadsheet output into a CSV file but first swap the columns
- Best score: 16
- Best player score: 19
- Position: #47 / 76
- Number of attempts: 4
Fix the git merge conflicts - 126 entries
Solve the merge conflicts in the Python file
- Best score: 36
- Best player score: 69
- Position: #34 / 42
- Number of attempts: 2
Markdown Blog Editing - 298 entries
Convert the given link text in start file to a markdown link list.
- Best score: 30
- Best player score: 43
- Position: #31 / 70
- Number of attempts: 6
Fix timezone format - 253 entries
Add the missing T and Z in the datetime field. There should be a T instead of the space, and a Z at the end of the datetime. `2024-08-31 18:32:00;` -> `2024-08-31T18:32:00Z;`
- Best score: 15
- Best player score: 17
- Position: #41 / 85
- Number of attempts: 3
Search different SQL column with similar where clause - 220 entries
Replace a column in the where clause and convert all numbers from text to numeric, by replacing the leading 0 with the code 359.
- Best score: 22
- Best player score: 28
- Position: #39 / 54
- Number of attempts: 2
Remove adjacent duplicates - 524 entries
Try to find a way to remove adjacent duplicate letters.
- Best score: 19
- Best player score: 23
- Position: #57 / 136
- Number of attempts: 3
Rearrange array to single level - 1396 entries
The goal is to flatten the array into a single list and remove any empty elements.
- Best score: 14
- Best player score: 35
- Position: #173 / 229
- Number of attempts: 2
Rearrange array to one line - 667 entries
Rearrange the array content on only one line, and remove trailing commas
- Best score: 13
- Best player score: 27
- Position: #129 / 161
- Number of attempts: 3
months to html list items - 1042 entries
Turn the months into list items.
- Best score: 22
- Best player score: 30
- Position: #211 / 284
- Number of attempts: 1
Remove line numbers - 736 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: 10
- Position: #2 / 198
- Number of attempts: 2
Find fix point of cos - 1408 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: 17
- Position: #299 / 418
- Number of attempts: 1
Paste a column after a column - 2555 entries
This task is very common while using multi-cursor. What is the elegant vim way ?
- Best score: 14
- Best player score: 17
- Position: #230 / 557
- Number of attempts: 6
Reformat symbols in list - 1625 entries
Saw this in some lecture, easy reformatting using multiple cursor in VS Code
- Best score: 24
- Best player score: 34
- Position: #221 / 349
- Number of attempts: 1
2 quick changes and a numbered list - 647 entries
The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.
- Best score: 37
- Best player score: 59
- Position: #110 / 154
- Number of attempts: 3
delete swap - 1788 entries
delete all swap
- Best score: 5
- Best player score: 5
- Position: #370 / 557
- Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1253 entries
Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.
- Best score: 29
- Best player score: 45
- Position: #155 / 271
- Number of attempts: 2
Fix the shell script! - 2596 entries
Fix the shell script with the fewest keystrokes!
- Best score: 26
- Best player score: 40
- Position: #411 / 603
- Number of attempts: 2
Applying same text modification in several lines - 2893 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 12
- Position: #27 / 856
- Number of attempts: 4
Add semicolons - 10881 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 11
- Position: #1781 / 3072
- Number of attempts: 7
remove lines containing the word "reader" - 3604 entries
easy stuff
- Best score: 9
- Best player score: 10
- Position: #862 / 1169
- Number of attempts: 4
Com(m)a Trouble - 3875 entries
Someone was real stupid when placing his commas. Can you fix it?
- Best score: 12
- Best player score: 28
- Position: #749 / 876
- Number of attempts: 2
Search and Replace 0 - 5004 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #736 / 1630
- Number of attempts: 3
Preferably without multi-cursor plugin - 540 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: 42
- Position: #115 / 129
- Number of attempts: 1
Python Hello World! Reformatting - 1000 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: 50
- Position: #351 / 382
- Number of attempts: 1
One to Ten - 2227 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: #367 / 677
- Number of attempts: 4
Change part of a function name in multiple occurrences - 662 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: #128 / 208
- Number of attempts: 2
Increment each number - 1025 entries
Increment each number individually by one
- Best score: 15
- Best player score: 28
- Position: #220 / 249
- Number of attempts: 5
Delete to the end of the current line - 829 entries
Delete to the end of the current line, but keep the character under the cursor.
- Best score: 5
- Best player score: 5
- Position: #268 / 400
- Number of attempts: 2
move titles next to url, in quotes - 537 entries
had trouble with something similar
- Best score: 19
- Best player score: 24
- Position: #120 / 142
- Number of attempts: 2
Words in parens - 12967 entries
We should all ace this, right?
- Best score: 13
- Best player score: 16
- Position: #2540 / 3969
- Number of attempts: 2
Refactor arguments into object argument - 166 entries
A relatively common Javascript refactoring.
- Best score: 48
- Best player score: 69
- Position: #39 / 68
- Number of attempts: 2
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: 29
- Position: #358 / 480
- Number of attempts: 2
Let's play some Ivmgolf - 1122 entries
Oops, I spelled that wrong.
- Best score: 7
- Best player score: 7
- Position: #145 / 446
- Number of attempts: 4
Vertical Limit - 2552 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 26
- Position: #508 / 757
- Number of attempts: 2
Switch function arguments - 2140 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 12
- Position: #337 / 664
- Number of attempts: 4
Indentation - 550 entries
Indent each line according to the right number of spaces it needs.
- Best score: 20
- Best player score: 27
- Position: #87 / 180
- Number of attempts: 8
Reverse characters in a line - 776 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: 22
- Position: #225 / 267
- Number of attempts: 3
Change the content of a string - 1593 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 22
- Position: #229 / 594
- Number of attempts: 3
Sort and add attributes - 1477 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 33
- Position: #285 / 575
- Number of attempts: 7
Braces or Brackets? - 1054 entries
Someone forgot whether to use braces or brackets and you have to clean up their code!
- Best score: 34
- Best player score: 46
- Position: #180 / 324
- Number of attempts: 3
Simple text editing with Vim - 12989 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 13
- Position: #721 / 3737
- Number of attempts: 7