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

Stairstep digits - 383 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 23
  • Position: #140 / 143
  • Number of attempts: 1
Acute accents - 33 entries

Featuring all 17 lowercase letters with an acute accent digraph. Find a way to automate the digraphs.

  • Best score: 18
  • Best player score: 57
  • Position: #25 / 25
  • Number of attempts: 1
I forgot quotes - 15946 entries

Oops.

  • Best score: 10
  • Best player score: 52
  • Position: #4156 / 4166
  • Number of attempts: 1
Words in parens - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 28
  • Position: #3833 / 3950
  • Number of attempts: 1
expand a list comprehension (python) - 302 entries

Please show your way to convert a list comprehension in python to an ordinary for-loop expression!

  • Best score: 42
  • Best player score: 141
  • Position: #106 / 107
  • Number of attempts: 1
Simple text editing with Vim - 12491 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #890 / 3626
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 6749 entries

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

  • Best score: 31
  • Best player score: 68
  • Position: #1569 / 1652
  • Number of attempts: 15

Contributed Challenges

Reformat/Refactor a Golfer Class - 6749 entries

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

Simple text editing with Vim - 12491 entries

Make the pairs of lines match up by making each second line same as first

Whitespace, empty lines and tabs - 3508 entries

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

Ilya Grigorik
Twitter:

Principal Engineer, @Shopify. On a mission to make commerce better for everyone.

entered into 7 challenges

contributed 3 challenges