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

Turn the x - 83 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 39
  • Number of attempts: 1
Rural Post - 2492 entries

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

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 5
Satisfy the go linter - 1202 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: 27
  • Number of attempts: 2
Multiline to Single Line - 207 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 4
Yo To Hello - 764 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
Replace pattern with 1, 2, 3, ... on each line - 754 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 28
  • Number of attempts: 5
prepend * to every non-blank line - 5154 entries

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

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 8
Quote modules - 875 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 43
  • Number of attempts: 2
Add string initializers to an enum - 699 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 26
  • Number of attempts: 2
Bad Copy Syntax - 1800 entries

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

  • Best score: 10
  • Best player score: 25
  • Number of attempts: 5
Simple Maths 2 - 18 entries

Time to practice expression register! #maths #linear

  • Best score: 17
  • Best player score: 40
  • Number of attempts: 1
Add semicolons - 9626 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 5
ninja substitution - 1123 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 14
Cool or not? - 703 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 11
Increment each number - 874 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 27
  • Number of attempts: 17
One to Ten - 1948 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: 8
remove lines containing the word "reader" - 3286 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 7
Change part of a function name in multiple occurrences - 568 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: 14
  • Number of attempts: 4
Com(m)a Trouble - 3120 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 4
Swap values inside brackets - 2339 entries

Easy challenge.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 15
Team names - 1718 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 19
  • Number of attempts: 1
Array transposition - 2165 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 28
  • Number of attempts: 4
Todo list specification - 328 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 37
  • Number of attempts: 5
Hidden Message - 59 entries

Find the hidden message and replace all other characters with spaces.

  • Best score: 33
  • Best player score: 51
  • Number of attempts: 3
Simple addition - 262 entries

The right side of the equation is already there. We just need the left one now.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 12
Every other line - 2718 entries

AaAaAaA

  • Best score: 12
  • Best player score: 20
  • Number of attempts: 2
Pretty multi-line bash - 210 entries

Bash line continuations are much prettier when they're column aligned.

  • Best score: 15
  • Best player score: 27
  • Number of attempts: 11
Copy three lines - 2672 entries

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

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 12
One number per line - 17704 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 3
Scrambled numbers - 764 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 32
  • Number of attempts: 5
Swap values - 4317 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 7
Assign numbers to fields - 90 entries

You are given a list of space-separated strings. Add an increasing numeric prefix to each one.

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 4
Vice versa - 7234 entries

Little role switching.

  • Best score: 12
  • Best player score: 23
  • Number of attempts: 1
Simple, Practical, and Common - 32069 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 23
  • Number of attempts: 3
Collect List - 4077 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 13
Square numbers - 67 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 39
  • Number of attempts: 4
Just the middle - 10910 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
I forgot quotes - 15283 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Number of attempts: 5
Basic renumbering - 5325 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
learn vim in short time - 206 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 9
  • Number of attempts: 4
Count both ways - 932 entries

Right AND down.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 10
-a-b-c- - 3008 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 7
Subtraction - 155 entries

Solve the equations.

  • Best score: 18
  • Best player score: 50
  • Number of attempts: 2
Don't know what this is - 1884 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
  • Number of attempts: 7
VimGolfNight - 478 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
quotes inside quotes - 2973 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: 15
  • Number of attempts: 7
Delete unwanted lines - 350 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 2
Draw the Go board - 131 entries

which is a 19×19 lines board. Here we use ascii characters only for simplicity. See diff file to get a sense. (See also http://en.wikipedia.org/wiki/Go_(game))

  • Best score: 50
  • Best player score: 93
  • Number of attempts: 2
Words in parens - 12475 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 4
Minimalist Limerick - 500 entries

Reproduce this lovely poem.

  • Best score: 31
  • Best player score: 35
  • Number of attempts: 6
Swap assigned value - 525 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 7
Checkerboard case pattern - 127 entries

All the squares are white. Make some of them black. But only the right ones.

  • Best score: 15
  • Best player score: 24
  • Number of attempts: 20
NATO phonetic alphabet - 429 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 22
  • Number of attempts: 4
Vertical Limit - 2268 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 26
  • Number of attempts: 9
Reverse and double space - 424 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 40
  • Number of attempts: 1
The meaning - 515 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 5
switch variable - 4806 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
HTML to Haml - 759 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 69
  • Number of attempts: 1
Shebangs for all - 1694 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
  • Number of attempts: 13
Almost encrypted - 176 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 397
  • Number of attempts: 3
Reverse Simple Deletion - 739 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Search and Replace 0 - 4482 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
Simple text editing with Vim - 11238 entries

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

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 4
mindgitrwx
Twitter:

use it or lose it, fire and wire.

entered into 63 challenges

contributed 0 challenges