Played Challenges
hexagram binary tree - 32 entries
generate the binary tree that represents all possible hexagrams found in the book of changes (易经)
- Best score: 24
- Best player score: 28
- Position: #2 / 10
- Number of attempts: 2
Delete the last function argument in python. - 517 entries
Delete the last function argument in this python script.
- Best score: 6
- Best player score: 6
- Position: #6 / 189
- Number of attempts: 1
Flip All Bits - 329 entries
Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.
- Best score: 26
- Best player score: 26
- Position: #1 / 106
- Number of attempts: 4
π - 321 entries
1200 π chars
- Best score: 16
- Best player score: 17
- Position: #21 / 79
- Number of attempts: 2
Copy punctuation - 734 entries
I want to copy the last line’s brackets, quotes, and commas to each line. How?
- Best score: 19
- Best player score: 19
- Position: #9 / 178
- Number of attempts: 2
Define Gray code states - 56 entries
List the states using Gray code and assign Gray code values to each state.
- Best score: 54
- Best player score: 54
- Position: #1 / 16
- Number of attempts: 2
Format a long line - 129 entries
Reformat long lines (gq), textwidth=78, no trailing spaces.
- Best score: 17
- Best player score: 18
- Position: #7 / 37
- Number of attempts: 1
Evil Numbers - 117 entries
Print the first 100 evil numbers https://oeis.org/A001969. This is an advert for code.golf https://code.golf/evil-numbers#viml
- Best score: 25
- Best player score: 25
- Position: #1 / 28
- Number of attempts: 5
Mirror image - 126 entries
Add the second eye
- Best score: 15
- Best player score: 17
- Position: #11 / 37
- Number of attempts: 3
Find anomalies - 166 entries
There is one special character per line
- Best score: 30
- Best player score: 30
- Position: #3 / 45
- Number of attempts: 5
Coordinate extraction - 67 entries
Get the coordinates of all "M"s from the Vim logo
- Best score: 43
- Best player score: 44
- Position: #7 / 18
- Number of attempts: 7
Quicksort - 2109 entries
We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.
- Best score: 6
- Best player score: 6
- Position: #112 / 471
- Number of attempts: 1
Reformat symbols in list - 1656 entries
Saw this in some lecture, easy reformatting using multiple cursor in VS Code
- Best score: 24
- Best player score: 25
- Position: #71 / 356
- Number of attempts: 2
Fizzbuzz - 614 entries
type the first 100 lines of the fizzbuzz problem
- Best score: 44
- Best player score: 45
- Position: #4 / 172
- Number of attempts: 5
Substraction (bis) - 638 entries
Solve the equations (adapted from the original @Caek_'s challenge).
- Best score: 21
- Best player score: 23
- Position: #28 / 117
- Number of attempts: 6
Visual block training - 1118 entries
You see the input. You see the output. Go.
- Best score: 17
- Best player score: 17
- Position: #1 / 209
- Number of attempts: 5
Levenshtein distance - 127 entries
Compute distance for each pair. Notice that this recursive implementation is very inefficient. Wagner-Fischer algorithm is iterative and much faster. #vimscript
- Best score: 27
- Best player score: 33
- Position: #20 / 39
- Number of attempts: 5
One number per line - 18894 entries
Just give me the numbers.
- Best score: 14
- Best player score: 15
- Position: #839 / 3901
- Number of attempts: 8
Prime Numbers - 385 entries
List the first 100 prime numbers.
- Best score: 34
- Best player score: 34
- Position: #7 / 107
- Number of attempts: 10
vim = 22 / 7 - 491 entries
pi square vim
- Best score: 20
- Best player score: 20
- Position: #37 / 136
- Number of attempts: 2
V to the i - 4861 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 7
- Position: #775 / 1911
- Number of attempts: 2
Add semicolons - 10950 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 10
- Position: #730 / 3095
- Number of attempts: 2
Every other line - 2945 entries
AaAaAaA
- Best score: 12
- Best player score: 13
- Position: #267 / 710
- Number of attempts: 6
Kolakoski sequence -- level 1 - 83 entries
Generate the Kolakoski sequence as described by its first 75 terms.
- Best score: 22
- Best player score: 26
- Position: #10 / 20
- Number of attempts: 2
Just the middle - 11611 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 7
- Position: #1523 / 4252
- Number of attempts: 2
Long prime list - filter version - 43 entries
I've used the maximum input/diff/output size allowed by vimgolf to get a list of integers up to 1460 separated by newlines, and your goal is to only keep the lines containing primes. There are 232 of them I hope some of you will golf vimscript itself to create some function to run as a primality check for each line, which is a good exercise if you haven't done much vimscript yet! You're invited to also try copy-pasting and doing other non-smart text manipulation. Even more interesting would be to see a solution that uses text manipulation to do the filtering! Whether you use vimscript, normal-mode primality checks, or text manipulation, as long as the end result is valid, your answer will be valid! Let's see which method does better here. Best of luck!
- Best score: 27
- Best player score: 27
- Position: #1 / 11
- Number of attempts: 2
Sierpinski's Triangle - 110 entries
Build the famous fractal, Sierpinski's Triangle.
- Best score: 25
- Best player score: 26
- Position: #11 / 29
- Number of attempts: 4
Cartesian product - 267 entries
{1,2,3,4,5} X {1,2,3,4,5}
- Best score: 24
- Best player score: 25
- Position: #10 / 100
- Number of attempts: 1
Collect List - 4333 entries
Convert to comma separated list.
- Best score: 12
- Best player score: 12
- Position: #536 / 1197
- Number of attempts: 1
camel riding - 798 entries
add a prefix on some camelCase variables
- Best score: 15
- Best player score: 16
- Position: #154 / 283
- Number of attempts: 2
readability - 332 entries
Make the code readable by adding some spaces
- Best score: 18
- Best player score: 18
- Position: #84 / 154
- Number of attempts: 1
50 factorials mod 97 - 69 entries
List 1! to 50!, but give your answer mod 97.
- Best score: 28
- Best player score: 28
- Position: #6 / 22
- Number of attempts: 3
Roman numerals - 95 entries
Use the substitutions on top to convert unary to Roman numerals.
- Best score: 17
- Best player score: 21
- Position: #20 / 31
- Number of attempts: 1
-a-b-c- - 3237 entries
Put hyphens everywhere.
- Best score: 13
- Best player score: 13
- Position: #317 / 1145
- Number of attempts: 3
Counting in binary - 556 entries
"a" represents 0; "A" represents 1. Start from zero and count to 15.
- Best score: 16
- Best player score: 17
- Position: #24 / 118
- Number of attempts: 1
It's a factor - 124 entries
Flaunt your macro prowess by factoring some numbers. Too hard? It takes less than 30 strokes, I promise.
- Best score: 24
- Best player score: 24
- Position: #1 / 39
- Number of attempts: 5
The Quick Brown Fox Jumps Over The Lazy Vim - 445 entries
Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."
- Best score: 8
- Best player score: 10
- Position: #99 / 198
- Number of attempts: 2
Generate Fibonacci Numbers - 300 entries
Use your super vim powers to generate Fibonacci Numbers.
- Best score: 19
- Best player score: 19
- Position: #20 / 106
- Number of attempts: 1
Reverse Simple Deletion - 865 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 12
- Position: #361 / 464
- Number of attempts: 3
Contributed Challenges
Evil Numbers - 117 entries
Print the first 100 evil numbers https://oeis.org/A001969. This is an advert for code.golf https://code.golf/evil-numbers#viml
VimGolf