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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #35 / 252
  • Number of attempts: 7
Enumerate Bullets - 244 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 / 65
  • Number of attempts: 8
swap number pairs - 1840 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #86 / 341
  • Number of attempts: 15
HS Final exam vimgolf - 803 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: #62 / 214
  • Number of attempts: 8
Rural Post - 4236 entries

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

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

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

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

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

  • Best score: 5
  • Best player score: 5
  • Position: #132 / 255
  • Number of attempts: 2
xrandr outputs and dashes - 624 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: #153 / 205
  • Number of attempts: 10
Yo To Hello - 1074 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #310 / 494
  • Number of attempts: 3
Replace pattern with 1, 2, 3, ... on each line - 1053 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: #177 / 213
  • 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