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

Plotting some variables in python - 1172 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: #235 / 247
  • Number of attempts: 2
simple replacements - 1072 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 35
  • Position: #227 / 239
  • Number of attempts: 2
Inverting Lines - 1296 entries

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

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

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #131 / 169
  • Number of attempts: 2
swap number pairs - 1475 entries

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

  • Best score: 16
  • Best player score: 50
  • Position: #255 / 285
  • Number of attempts: 1
Rural Post - 4105 entries

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

  • Best score: 9
  • Best player score: 33
  • Position: #942 / 1015
  • Number of attempts: 3
Add quotes to ansible playbook - 781 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #152 / 246
  • Number of attempts: 5
Multiline to Single Line - 522 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #152 / 235
  • Number of attempts: 8
From a Thunderlink to a Markdown link - 702 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: #124 / 155
  • Number of attempts: 3
Yo To Hello - 1048 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #338 / 481
  • Number of attempts: 7
Replace pattern with 1, 2, 3, ... on each line - 1036 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: #175 / 208
  • Number of attempts: 5
One number per line - 18378 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 30
  • Position: #3576 / 3788
  • Number of attempts: 5
Quote modules - 1015 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 66
  • Position: #254 / 258
  • Number of attempts: 1
remove lines containing the word "reader" - 3454 entries

easy stuff

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

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

  • Best score: 12
  • Best player score: 38
  • Position: #704 / 760
  • Number of attempts: 10
Box it - 7680 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 45
  • Position: #1714 / 1835
  • Number of attempts: 6
Python Hello World! Reformatting - 897 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: #236 / 350
  • Number of attempts: 2
Remember VimGolf Rules ! - 235 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #102 / 127
  • Number of attempts: 8
Fun With The Diagonal - 97 entries

change the lowercase characters on the main diagonal to uppercase

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

philosophizing about nothing at all

entered into 19 challenges

contributed 0 challenges