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 - 1254 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #156 / 413
  • Number of attempts: 8
2 quick changes and a numbered list - 599 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: #140 / 145
  • Number of attempts: 2
delete swap - 1534 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #143 / 482
  • Number of attempts: 6
Plotting some variables in python - 1567 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: #321 / 334
  • Number of attempts: 2
simple replacements - 1662 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 35
  • Position: #349 / 371
  • Number of attempts: 2
Inverting Lines - 1837 entries

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

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

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #212 / 278
  • Number of attempts: 2
swap number pairs - 2011 entries

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

  • Best score: 16
  • Best player score: 50
  • Position: #338 / 370
  • Number of attempts: 1
Rural Post - 4368 entries

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

  • Best score: 9
  • Best player score: 33
  • Position: #999 / 1072
  • Number of attempts: 3
Add quotes to ansible playbook - 930 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #162 / 296
  • Number of attempts: 5
Multiline to Single Line - 668 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #152 / 292
  • Number of attempts: 8
From a Thunderlink to a Markdown link - 747 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: #134 / 166
  • Number of attempts: 3
Yo To Hello - 1115 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #338 / 518
  • Number of attempts: 7
Replace pattern with 1, 2, 3, ... on each line - 1098 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: #187 / 225
  • Number of attempts: 5
One number per line - 18616 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 30
  • Position: #3625 / 3842
  • Number of attempts: 5
Quote modules - 1054 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 66
  • Position: #270 / 274
  • Number of attempts: 1
remove lines containing the word "reader" - 3537 entries

easy stuff

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

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

  • Best score: 12
  • Best player score: 38
  • Position: #763 / 827
  • Number of attempts: 10
Box it - 7828 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 45
  • Position: #1744 / 1865
  • Number of attempts: 6
Python Hello World! Reformatting - 938 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: #242 / 364
  • Number of attempts: 2
Remember VimGolf Rules ! - 257 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #105 / 138
  • Number of attempts: 8
Fun With The Diagonal - 103 entries

change the lowercase characters on the main diagonal to uppercase

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

philosophizing about nothing at all

entered into 22 challenges

contributed 0 challenges