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

Changing date formats - 751 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 85
  • Position: #116 / 211
  • Number of attempts: 2
YAML to dotenv - 1637 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 39
  • Position: #281 / 342
  • Number of attempts: 3
Remove noise from HTTP log - 759 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 15
  • Position: #149 / 281
  • Number of attempts: 5
Before there was Farmville... - 111 entries

There was old MacDonald. For my toddler. The first Vim sing-a-long?

  • Best score: 156
  • Best player score: 385
  • Position: #49 / 52
  • Number of attempts: 1
Insert a Markdown link - 473 entries

Put a link in a markdown document, using the after-the-paragraph format.

  • Best score: 22
  • Best player score: 31
  • Position: #138 / 157
  • Number of attempts: 3
The Universal Declaration of Human Rights, Article 1 - 185 entries

Somebody's got this slightly muddled up. See how quickly you can fix it. (I made this to experiment with buffers. I'm not actually sure whether this is faster with buffers or without.)

  • Best score: 24
  • Best player score: 27
  • Position: #53 / 77
  • Number of attempts: 1
Reformat most common surnames - 837 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 31
  • Position: #143 / 239
  • Number of attempts: 2
Remember FizzBuzz? - 826 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 87
  • Position: #180 / 210
  • Number of attempts: 3
Change the content of a string - 1803 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #257 / 656
  • Number of attempts: 3
Braces or Brackets? - 1209 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 52
  • Position: #289 / 365
  • Number of attempts: 1
Whitespace, empty lines and tabs - 4054 entries

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

  • Best score: 16
  • Best player score: 21
  • Position: #272 / 866
  • Number of attempts: 7
Simple text editing with Vim - 13645 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2109 / 3907
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7694 entries

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

  • Best score: 7
  • Best player score: 56
  • Position: #1647 / 1893
  • Number of attempts: 2
Michael E. Gruen
Github:

entered into 13 challenges

contributed 0 challenges