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

Many duplicates - 1447 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #164 / 470
  • Number of attempts: 8
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: 190
  • Position: #148 / 154
  • Number of attempts: 2
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #143 / 557
  • Number of attempts: 6
Plotting some variables in python - 1661 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 102
  • Position: #333 / 348
  • Number of attempts: 2
simple replacements - 1802 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 35
  • Position: #366 / 390
  • Number of attempts: 2
Inverting Lines - 1907 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #113 / 512
  • Number of attempts: 6
Python dataclasses - 1187 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #225 / 294
  • Number of attempts: 2
swap number pairs - 2115 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 50
  • Position: #351 / 384
  • Number of attempts: 1
Rural Post - 4526 entries

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

  • Best score: 9
  • Best player score: 33
  • Position: #1031 / 1107
  • Number of attempts: 3
Add quotes to ansible playbook - 1001 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #167 / 316
  • Number of attempts: 5
Multiline to Single Line - 731 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #152 / 310
  • Number of attempts: 8
From a Thunderlink to a Markdown link - 776 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: 26
  • Position: #138 / 172
  • Number of attempts: 3
Yo To Hello - 1142 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #339 / 529
  • Number of attempts: 7
Replace pattern with 1, 2, 3, ... on each line - 1150 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: 40
  • Position: #193 / 232
  • Number of attempts: 5
One number per line - 18755 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 30
  • Position: #3648 / 3870
  • Number of attempts: 5
Quote modules - 1090 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 66
  • Position: #279 / 283
  • Number of attempts: 1
remove lines containing the word "reader" - 3604 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #172 / 1169
  • Number of attempts: 10
Com(m)a Trouble - 3875 entries

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

  • Best score: 12
  • Best player score: 38
  • Position: #808 / 876
  • Number of attempts: 10
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 45
  • Position: #1760 / 1881
  • Number of attempts: 6
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: 44
  • Position: #252 / 382
  • Number of attempts: 2
Remember VimGolf Rules ! - 264 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #106 / 142
  • Number of attempts: 8
Fun With The Diagonal - 107 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Position: #64 / 81
  • Number of attempts: 5
panakin skywalker
Twitter:

philosophizing about nothing at all

entered into 22 challenges

contributed 0 challenges