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

Modernise code - 994 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #35 / 224
  • Number of attempts: 7
Enumerate Bullets - 226 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 20
  • Best player score: 20
  • Position: #14 / 60
  • Number of attempts: 8
swap number pairs - 1664 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #81 / 311
  • Number of attempts: 15
HS Final exam vimgolf - 745 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 22
  • Position: #57 / 200
  • Number of attempts: 8
Rural Post - 4156 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #160 / 1030
  • Number of attempts: 6
Satisfy the go linter - 2031 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: 20
  • Position: #103 / 412
  • Number of attempts: 8
Add quotes to ansible playbook - 822 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #44 / 258
  • Number of attempts: 4
Multiline to Single Line - 552 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #132 / 248
  • Number of attempts: 2
xrandr outputs and dashes - 613 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 13
  • Position: #151 / 199
  • Number of attempts: 10
Yo To Hello - 1066 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #310 / 489
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 1047 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: #176 / 211
  • Number of attempts: 1
Two pairs of cluster of letters creates word - 718 entries

Clean and group.

  • Best score: 17
  • Best player score: 17
  • Position: #55 / 169
  • Number of attempts: 9
Michael
Twitter:

fun

entered into 12 challenges

contributed 0 challenges