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

Inverting Lines - 261 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 1
Rural Post - 3622 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 6
Satisfy the go linter - 1464 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 9
Add quotes to ansible playbook - 398 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 9
  • Number of attempts: 7
Multiline to Single Line - 256 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 3
From a Thunderlink to a Markdown link - 571 entries

ThunderLinks are durable hyperlinks to specific email messages generated from Thunderbird in HTML format. Leverage the power of vim to make them suitable for a markdown-formatted file.

  • Best score: 18
  • Best player score: 28
  • Number of attempts: 1
prepend * to every non-blank line - 5702 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 5
Line under headers - 1851 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 36
  • Number of attempts: 1
Bad Copy Syntax - 1881 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 35
  • Number of attempts: 1
Add semicolons - 10286 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
Box it - 7592 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 6
One to Ten - 2030 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
  • Number of attempts: 6
remove lines containing the word "reader" - 3410 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 7
Array propagate - 279 entries

Complete the array with the keys as part of the value

  • Best score: 23
  • Best player score: 42
  • Number of attempts: 1
Every other line - 2769 entries

AaAaAaA

  • Best score: 7
  • Best player score: 12
  • Number of attempts: 4
Copy three lines - 2747 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 8
One number per line - 18189 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 10
Swap values - 4374 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
Vice versa - 7383 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 14
Make HTML List - 982 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 46
  • Number of attempts: 3
Collect List - 4138 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Just the middle - 11070 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 5
I forgot quotes - 15627 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 8
Basic renumbering - 5393 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 6
-a-b-c- - 3077 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 6
Do you demand a shrubbery? - 1079 entries

Use :redir and crush the emacsgolfers.

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10507 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
Words in parens - 12676 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 7
switch variable - 4863 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 6
Shebangs for all - 1718 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: 11
  • Number of attempts: 12
Reverse and count - 389 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 2
A Simple One - 870 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
  • Number of attempts: 5

Contributed Challenges

Python dataclasses - 54 entries

Simple challenge to extract fields from a Python class

Trong Kha Nguyen
Twitter:

Web developer & security researcher.

entered into 32 challenges

contributed 1 challenges