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

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

  • Best score: 10
  • Best player score: 15
  • Position: #146 / 198
  • Number of attempts: 6
RUST match with enum for Coin - 99 entries

RUST match with enum for Coin rusty practice on vimgolf

  • Best score: 85
  • Best player score: 137
  • Position: #26 / 29
  • Number of attempts: 4
swap number pairs - 1121 entries

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

  • Best score: 16
  • Best player score: 37
  • Position: #170 / 214
  • Number of attempts: 6
Easy modification of ssh config - 135 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 54
  • Position: #40 / 42
  • Number of attempts: 4
Rural Post - 3717 entries

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

  • Best score: 9
  • Best player score: 28
  • Position: #813 / 918
  • Number of attempts: 1
Multiline to Single Line - 325 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #133 / 153
  • Number of attempts: 12
Yo To Hello - 883 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #311 / 414
  • Number of attempts: 5
Replace pattern with 1, 2, 3, ... on each line - 898 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: 38
  • Position: #148 / 184
  • Number of attempts: 5
Python Hello World! Reformatting - 869 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: 46
  • Position: #274 / 333
  • Number of attempts: 4
Reformat a C golf submission - 501 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 40
  • Position: #156 / 186
  • Number of attempts: 8
Whitespace, empty lines and tabs - 2774 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 21
  • Position: #171 / 632
  • Number of attempts: 11
Reformat/Refactor a Golfer Class - 5804 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 46
  • Position: #1081 / 1438
  • Number of attempts: 7
Scott Atkins
Twitter:

eat, run, code!

entered into 12 challenges

contributed 0 challenges