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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #35 / 152
  • Number of attempts: 7
Enumerate Bullets - 138 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 / 36
  • Number of attempts: 8
swap number pairs - 1293 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #70 / 244
  • Number of attempts: 15
HS Final exam vimgolf - 578 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: #49 / 156
  • Number of attempts: 8
Rural Post - 3797 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #160 / 938
  • Number of attempts: 6
Satisfy the go linter - 1625 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 / 334
  • Number of attempts: 8
Add quotes to ansible playbook - 597 entries

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

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

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

  • Best score: 5
  • Best player score: 5
  • Position: #132 / 179
  • Number of attempts: 2
xrandr outputs and dashes - 568 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: #138 / 184
  • Number of attempts: 10
Yo To Hello - 983 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #310 / 454
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 954 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: #164 / 193
  • Number of attempts: 1
Two pairs of cluster of letters creates word - 706 entries

Clean and group.

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

fun

entered into 12 challenges

contributed 0 challenges