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

Modifying .XCompose - 44 entries

You just wrote some lines in .XCompose, but now you want the compose sequences to be more verbose. Change the compose sequence for each Greek letter to its name.

  • Best score: 33
  • Best player score: 33
  • Position: #1 / 12
  • Number of attempts: 3
hexagram binary tree - 86 entries

generate the binary tree that represents all possible hexagrams found in the book of changes (易经)

  • Best score: 24
  • Best player score: 28
  • Position: #6 / 21
  • Number of attempts: 2
Delete the last function argument in python. - 611 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #6 / 221
  • Number of attempts: 1
Flip All Bits - 387 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 / 119
  • Number of attempts: 4
π - 327 entries

1200 π chars

  • Best score: 16
  • Best player score: 17
  • Position: #22 / 80
  • Number of attempts: 2
Copy punctuation - 739 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 / 181
  • Number of attempts: 2
Define Gray code states - 61 entries

List the states using Gray code and assign Gray code values to each state.

  • Best score: 54
  • Best player score: 54
  • Position: #1 / 17
  • 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 - 132 entries

Add the second eye

  • Best score: 15
  • Best player score: 17
  • Position: #11 / 38
  • Number of attempts: 3
Find anomalies - 171 entries

There is one special character per line

  • Best score: 30
  • Best player score: 30
  • Position: #3 / 46
  • 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 - 2113 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 / 472
  • Number of attempts: 1
Reformat symbols in list - 1658 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 25
  • Position: #71 / 357
  • 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 - 139 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 / 40
  • Number of attempts: 5
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 15
  • Position: #839 / 3904
  • Number of attempts: 8
Prime Numbers - 401 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 34
  • Position: #7 / 109
  • 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 - 4883 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #775 / 1914
  • Number of attempts: 3
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #730 / 3098
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 868 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #354 / 451
  • Number of attempts: 1
Every other line - 2951 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #267 / 712
  • Number of attempts: 6
Extract argument from function - 2427 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #283 / 772
  • Number of attempts: 1
Kolakoski sequence -- level 1 - 95 entries

Generate the Kolakoski sequence as described by its first 75 terms.

  • Best score: 22
  • Best player score: 26
  • Position: #11 / 21
  • Number of attempts: 2
Search and Replace 0 - 5159 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #771 / 1674
  • Number of attempts: 1
Across-Down Flip - 93 entries

Do this instead of the Sunday crossword.

  • Best score: 23
  • Best player score: 23
  • Position: #7 / 29
  • Number of attempts: 1
That hyphen - 2646 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 10
  • Position: #288 / 711
  • Number of attempts: 2
Just the middle - 11616 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1523 / 4255
  • Number of attempts: 2
Acute accents - 42 entries

Featuring all 17 lowercase letters with an acute accent digraph. Find a way to automate the digraphs.

  • Best score: 18
  • Best player score: 18
  • Position: #23 / 28
  • Number of attempts: 1
Long prime list - filter version - 48 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 / 12
  • Number of attempts: 2
Basic renumbering - 5736 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #286 / 1280
  • Number of attempts: 1
Create Leading Zeros - 277 entries

Create leading zeros only for id columns. Please use generic approach!

  • Best score: 23
  • Best player score: 23
  • Position: #13 / 89
  • Number of attempts: 3
JSON string rotation - 86 entries

Right value strings are misplaced. Just rotate them! I'm too kind with you guys and didn't included "strings with \" in it"!

  • Best score: 19
  • Best player score: 19
  • Position: #10 / 25
  • Number of attempts: 1
Hail to Alekseï Pajitnov - 57 entries

Wanna play tetris? Don't panic, it's quite long but there's no piece rotation. Little advice: source the file, Luke!

  • Best score: 51
  • Best player score: 52
  • Position: #8 / 19
  • Number of attempts: 1
Separating firstname & lastname - 182 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 19
  • Position: #12 / 62
  • Number of attempts: 1
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
Binary and Increment - 78 entries

Some numbers fun: not only increasing numbers but also increasing binary.

  • Best score: 21
  • Best player score: 21
  • Position: #1 / 23
  • Number of attempts: 1
Cartesian product - 277 entries

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

  • Best score: 24
  • Best player score: 25
  • Position: #10 / 102
  • Number of attempts: 1
Collect List - 4341 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #536 / 1200
  • Number of attempts: 1
VimGolfNight - 602 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #303 / 356
  • Number of attempts: 1
camel riding - 815 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 16
  • Position: #154 / 284
  • Number of attempts: 2
swap or reverse - 132 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Position: #59 / 72
  • Number of attempts: 1
readability - 341 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 18
  • Position: #84 / 156
  • Number of attempts: 1
Logging with key - 343 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 22
  • Position: #33 / 90
  • Number of attempts: 1
Space out the alphabet - 1693 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Position: #117 / 457
  • Number of attempts: 1
Not enough Ps - 75 entries

Different type of code

  • Best score: 13
  • Best player score: 13
  • Position: #30 / 39
  • Number of attempts: 1
Shuffled numbers - 255 entries

Each number is paired with the number it should follow. That's enough information to put them in order.

  • Best score: 15
  • Best player score: 15
  • Position: #44 / 99
  • 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
Mute the second method of this script - 464 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #154 / 245
  • Number of attempts: 2
Remove hard line breaks - 87 entries

Text files with Hard breaks are not good for e-readers. We need remove all hard line breaks and have long lines.

  • Best score: 10
  • Best player score: 11
  • Position: #13 / 37
  • Number of attempts: 1
Custom McCarthy sequence - 64 entries

Generate the first one hundred and twenty numbers (starting with n=1). See here for some inspiration: http://en.wikipedia.org/wiki/McCarthy_91_function

  • Best score: 15
  • Best player score: 17
  • Position: #11 / 20
  • Number of attempts: 1
Conway sequence - 30 entries

Generate the the first fifteen numbers. See here for more information: http://en.wikipedia.org/wiki/Look-and-say_sequence

  • Best score: 43
  • Best player score: 43
  • Position: #21 / 23
  • Number of attempts: 1
Greek column realign - 63 entries

Oops one letter is missing! Shift down the second column to insert nu letter. Symbol can be entered using: <C-K>n*

  • Best score: 19
  • Best player score: 23
  • Position: #16 / 27
  • Number of attempts: 2
Sorting database text output - 236 entries

Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data. In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list. What is the fewest strokes you can do this in?

  • Best score: 24
  • Best player score: 24
  • Position: #42 / 87
  • Number of attempts: 1
Config Sections - 80 entries

Section me!

  • Best score: 43
  • Best player score: 43
  • Position: #8 / 23
  • Number of attempts: 3
Test everything! - 213 entries

... and build the desired input data structure. Transform a list of values into a non-trivial format.

  • Best score: 21
  • Best player score: 21
  • Position: #1 / 58
  • Number of attempts: 3
Condensed Cases - 827 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: #104 / 254
  • Number of attempts: 2
increment by column in XML - 167 entries

modify an arbitrary "column" in an xml table by incrementing a an arbitrary placeholder string

  • Best score: 19
  • Best player score: 19
  • Position: #11 / 57
  • Number of attempts: 2
Square numbers - 141 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 21
  • Position: #13 / 46
  • Number of attempts: 1
Pretty format for variable declarations - 186 entries

Project standards demand the equal signs must be aligned for better readability.

  • Best score: 13
  • Best player score: 14
  • Position: #27 / 68
  • Number of attempts: 2
Simple Maths - 88 entries

Not much to say, discover by yourself!

  • Best score: 26
  • Best player score: 27
  • Position: #5 / 31
  • Number of attempts: 5
Happy TvvO - 439 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #162 / 211
  • Number of attempts: 1
range(10) digit rotation - 48 entries

This is a data generator challenge or some kind of gift..

  • Best score: 18
  • Best player score: 19
  • Position: #19 / 25
  • Number of attempts: 1
I forgot quotes - 16237 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1147 / 4224
  • Number of attempts: 2
learn vim in short time - 247 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #136 / 167
  • Number of attempts: 1
Roman numerals - 106 entries

Use the substitutions on top to convert unary to Roman numerals.

  • Best score: 17
  • Best player score: 21
  • Position: #21 / 32
  • Number of attempts: 1
-a-b-c- - 3241 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #317 / 1146
  • Number of attempts: 4
Count both ways - 1052 entries

Right AND down.

  • Best score: 13
  • Best player score: 14
  • Position: #93 / 361
  • Number of attempts: 1
NBCU Weekly Challenge - Test - 264 entries

Just testing.

  • Best score: 18
  • Best player score: 18
  • Position: #67 / 120
  • Number of attempts: 2
Change name of a variable - 196 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #140 / 147
  • Number of attempts: 1
Lisp Condense - 484 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 13
  • Position: #62 / 162
  • Number of attempts: 1
Gray area - 763 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Position: #136 / 276
  • Number of attempts: 2
NBCU Weekly Challenge - #0 - 162 entries

One of our favorites lines here at NBCU! p.s. The first version of #0 was deleted due to me copy/pasting a HTML entity. Congrats to the one who figured that out, you are a true ninja warrior!

  • Best score: 28
  • Best player score: 28
  • Position: #1 / 61
  • Number of attempts: 2
Refactor static member invocation - 233 entries

Someone used a static method. Refactor the method into a static import while fixing the assertion.

  • Best score: 28
  • Best player score: 28
  • Position: #14 / 67
  • Number of attempts: 2
Neither Fizz nor Buzz - 271 entries

Not your regular increment macro! The gaps are tricky.

  • Best score: 13
  • Best player score: 13
  • Position: #19 / 107
  • Number of attempts: 1
Do you demand a shrubbery? - 1207 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 18
  • Position: #160 / 309
  • Number of attempts: 1
Don't know what this is - 2067 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: #141 / 595
  • Number of attempts: 2
Where should I put the Newline? - 911 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #228 / 450
  • Number of attempts: 1
Vim tetris - 390 entries

Vim can play tetris too!

  • Best score: 21
  • Best player score: 21
  • Position: #28 / 108
  • Number of attempts: 1
Piphilology - 177 entries

Piphilology comprises the creation and use of mnemonic techniques to remember a span of digits of the mathematical constant π. http://en.wikipedia.org/wiki/Piphilology

  • Best score: 28
  • Best player score: 29
  • Position: #12 / 57
  • Number of attempts: 2
Mess in revision history - 1235 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 19
  • Position: #100 / 259
  • Number of attempts: 1
Shuffle puzzle - 377 entries

Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.

  • Best score: 13
  • Best player score: 14
  • Position: #53 / 108
  • Number of attempts: 1
Split the words - 399 entries

Add the spaces manually if you must, but if you use Vim's spell checking feature wisely, I think you'll save a LARGE number of strokes.

  • Best score: 18
  • Best player score: 24
  • Position: #23 / 115
  • Number of attempts: 3
Permutations N=4 - 82 entries

Could use backtracking or other algorithm to generate sorted numbers. Second chance !

  • Best score: 25
  • Best player score: 28
  • Position: #13 / 22
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10757 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1631 / 3716
  • Number of attempts: 2
attr_aligner - 3566 entries

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

  • Best score: 19
  • Best player score: 19
  • Position: #188 / 710
  • Number of attempts: 1
Ninjas Leaderboard - 114 entries

The two lines in "Start file" has an obfuscated email address. Second line give an index (from 1 to 30) to the chars list of the first line, for example, the first char of email (n) is in position 25, second char (i) is in position 19 and s.o.

  • Best score: 25
  • Best player score: 25
  • Position: #8 / 45
  • Number of attempts: 2
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
Letter case trickery - 1686 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: #43 / 525
  • Number of attempts: 2
Untangle my tail, please! - 74 entries

You know, this words were playing to chase their tails and Oops! What happened? Now we have a complete mess, their tails are totally tangled, can you please help them to untangle their tails?

  • Best score: 16
  • Best player score: 16
  • Position: #11 / 36
  • Number of attempts: 2
quotes inside quotes - 3202 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: #372 / 1093
  • Number of attempts: 1
Change The Perspective - 47 entries

This is a go game recodes file(.sgf file, refer to http://www.red-bean.com/sgf/). It base on such a coordinate system: in vertical direction, is from top(farthest end) to bottom, mark as a,b,c,...,s(19*19 board); in horizontal direction, is from left to right, uses the same notations. For Example, the coordinate notation 'cq', is the position at the bottom-left corner(vertical coordinate first). The record is from one player's perspective. We need to change to another's, but we don't want to change coordinate system, let it keep top to bottom and left to right. so we have to change the coordinates, a <-> s, b <-> r,c <-> q, etc. the Position 'cq', as transformation, it will be 'qd'.

  • Best score: 33
  • Best player score: 36
  • Position: #8 / 25
  • Number of attempts: 2
Sort the VimGolf challenges by popularity - 369 entries

"Sort by popularity" is a good order to play the challenges. Not perfect, but you could do a lot worse. ;) Input is a sample copy-pasted from vimgolf.com. Some of the challenge names have digits that will get in your way, so read ":help :sort" for hints on sorting with a regex. When you're done, try your solution on the full list!

  • Best score: 15
  • Best player score: 15
  • Position: #40 / 110
  • Number of attempts: 2
Words in parens - 13053 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1194 / 3991
  • Number of attempts: 3
paste indent correction - JS - 124 entries

You copy some javascript code from a website and paste it into vim, it does not look good!

  • Best score: 16
  • Best player score: 16
  • Position: #45 / 62
  • Number of attempts: 2
It's a factor - 128 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 / 40
  • Number of attempts: 5
Lookahead and Lookbehind - 82 entries

Look everywhere

  • Best score: 16
  • Best player score: 17
  • Position: #10 / 33
  • Number of attempts: 3
Word frequency alignment - 310 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #131 / 166
  • Number of attempts: 3
fib.c cleanup - 80 entries

cleanup the file

  • Best score: 15
  • Best player score: 16
  • Position: #51 / 59
  • Number of attempts: 1
REDRUM - 202 entries

If you remember "The Shinning", the first time you saw the bloody word REDRUM you probably thinked "What the Hell is that?" Well, then you know that you need a little help from a looking-glass to make sense of it. Now it's time to use vim like a mirror to reveal the message.

  • Best score: 14
  • Best player score: 14
  • Position: #26 / 70
  • Number of attempts: 1
Enumerate words - 279 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 23
  • Position: #9 / 96
  • Number of attempts: 1
Harder than "abcd > a b c d" - 112 entries

Not as easy as the last challenge. This time, just one space between a and b, up to 25 spaces between y and z. (Removed some lines; diff was too long.)

  • Best score: 15
  • Best player score: 15
  • Position: #9 / 49
  • Number of attempts: 1
Block Fun 1 - 245 entries

Manipulate the columns to produce desired result.

  • Best score: 14
  • Best player score: 14
  • Position: #19 / 79
  • Number of attempts: 1
Sort by sum of numbers in a line(?) - 75 entries

The lines with the biggest sums need to be at the top. The sums are on the right, which makes life hard. Maybe you can find a feature that will do all the work for you...

  • Best score: 15
  • Best player score: 15
  • Position: #14 / 42
  • Number of attempts: 1
abcd > a b c d - 308 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #213 / 231
  • Number of attempts: 1
Python: Lots of function arguments - 129 entries

The function definition is too long for one line. The modeline helps you with some typical Python indent settings.

  • Best score: 6
  • Best player score: 6
  • Position: #5 / 53
  • Number of attempts: 1
Printable ASCII characters - 171 entries

From a blank input, print all 95 printing ASCII characters one per line, from space to tilde.

  • Best score: 22
  • Best player score: 22
  • Position: #8 / 47
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 456 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 / 199
  • Number of attempts: 2
The name of the game - 696 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #288 / 369
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1642 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 8
  • Position: #135 / 457
  • Number of attempts: 1
Stairs Indenting - 502 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 12
  • Position: #28 / 202
  • Number of attempts: 1
Unwrap the text of an email message - 203 entries

Reverse of "Wrap the text of an email message to 79 characters". gq and gw are great for wrapping paragraphs. But sometimes other programs choke on your wrapped lines. What's the best way to un-gq?

  • Best score: 16
  • Best player score: 16
  • Position: #36 / 78
  • Number of attempts: 1
Saving the hashes(#) - 2116 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: 21
  • Position: #134 / 488
  • Number of attempts: 1
Convert pandoc unordered list to a numbered list - 215 entries

I know it's possible to use #. in pandoc to auto-generate numbered lists, but then it's not easy to tell how many items there are when reading it in Markdown. How fast can you make the switch?

  • Best score: 20
  • Best player score: 20
  • Position: #8 / 62
  • Number of attempts: 2
SFD-ROC: ROT13 Phonics - 118 entries

A is for apple, b is for ball, etc... This familiar phonics poem has been rotated 13 characters. Make the letter match the word.

  • Best score: 6
  • Best player score: 6
  • Position: #67 / 79
  • Number of attempts: 1
Let's play some Ivmgolf - 1162 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Position: #151 / 459
  • Number of attempts: 1
Enharmonic Equivalents - 74 entries

Transform # and b to digraphs

  • Best score: 18
  • Best player score: 18
  • Position: #17 / 41
  • Number of attempts: 1
Remove semicolons after expressions - 685 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Position: #142 / 270
  • Number of attempts: 1
un-C-escape string - 63 entries

Convert escape sequences to characters

  • Best score: 12
  • Best player score: 12
  • Position: #52 / 55
  • Number of attempts: 1
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #681 / 1764
  • Number of attempts: 1
The meaning - 588 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #331 / 368
  • Number of attempts: 1
formatted text to markdown - 193 entries

You're converting some posts from an old blog to markdown. The formatted text is far closer to the finished product than the html markup, so it seems like a good place to start. Word wrapping seems to be the main area for optimization.

  • Best score: 70
  • Best player score: 71
  • Position: #6 / 69
  • Number of attempts: 1
Case preserving word replacement - 477 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 19
  • Position: #71 / 186
  • Number of attempts: 1
Complete the hex array data (Part II) - 192 entries

Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]

  • Best score: 20
  • Best player score: 20
  • Position: #6 / 72
  • Number of attempts: 1
Sort entries based on date - 432 entries

Sort some entries in a Ledger-file based on date.

  • Best score: 11
  • Best player score: 11
  • Position: #49 / 121
  • Number of attempts: 1
Generate Fibonacci Numbers - 334 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 19
  • Position: #20 / 108
  • Number of attempts: 1
It'ss tooo coold too typpe todaay - 238 entries

My hands are numb with cold. It's hard to type correctly.

  • Best score: 16
  • Best player score: 16
  • Position: #16 / 101
  • Number of attempts: 1
Rotating Philosophers Problem - 421 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 30
  • Position: #86 / 169
  • Number of attempts: 1
Reformat long lines - 388 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 15
  • Position: #34 / 141
  • Number of attempts: 1
Generate English Alphabets - 540 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 19
  • Position: #14 / 216
  • Number of attempts: 1
Numbering a List - 1969 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #94 / 661
  • Number of attempts: 1
The Universal Declaration of Human Rights, Article 1 - 185 entries

Somebody's got this slightly muddled up. See how quickly you can fix it. (I made this to experiment with buffers. I'm not actually sure whether this is faster with buffers or without.)

  • Best score: 24
  • Best player score: 24
  • Position: #25 / 77
  • Number of attempts: 1
The holy-grail may help - 405 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 16
  • Position: #171 / 221
  • Number of attempts: 1
Ruby 1.9 hashes - 1312 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: 12
  • Position: #120 / 419
  • Number of attempts: 1
A Simple One - 1091 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: #602 / 680
  • Number of attempts: 1
Ruby 1.9 compat - 661 entries

Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!

  • Best score: 14
  • Best player score: 14
  • Position: #76 / 241
  • Number of attempts: 1
Reverse Simple Deletion - 874 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 11
  • Position: #63 / 466
  • Number of attempts: 4
Increment, increment, increment.... - 706 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #79 / 416
  • Number of attempts: 1
Dumb to smart - 116 entries

Turn dumb quote to smart vim's way.

  • Best score: 27
  • Best player score: 27
  • Position: #1 / 60
  • Number of attempts: 1
Context Insensitive completion 1 - 532 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #172 / 252
  • Number of attempts: 1
Almost encrypted - 211 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #130 / 149
  • Number of attempts: 1
Make Fancy Header - 1108 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 16
  • Position: #134 / 356
  • Number of attempts: 1
Reverse characters in a line - 844 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 8
  • Best player score: 13
  • Position: #103 / 282
  • Number of attempts: 1
Change the content of a string - 1799 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #269 / 655
  • Number of attempts: 1
Whitespace, empty lines and tabs - 4044 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #199 / 862
  • Number of attempts: 4
Flodder-challenge - 1500 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 27
  • Position: #43 / 378
  • Number of attempts: 5
Simple text editing with Vim - 13626 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #776 / 3902
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7681 entries

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

  • Best score: 7
  • Best player score: 34
  • Position: #350 / 1889
  • 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

Even and Odd - 194 entries

separate the even numbers from the odd numbers

wpr__
Twitter:

https://t.co/1JGAljWYRK

entered into 151 challenges

contributed 2 challenges