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

months to html list items - 512 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #10 / 143
  • Number of attempts: 9
EDN reformat - 1012 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #59 / 141
  • Number of attempts: 14
Remove line numbers - 528 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 8
  • Best player score: 21
  • Position: #92 / 140
  • Number of attempts: 2
HS exam question - 1506 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 47
  • Position: #18 / 394
  • Number of attempts: 18
Many duplicates - 1248 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #267 / 408
  • Number of attempts: 3
Search and Replace 0 - 4790 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #721 / 1585
  • Number of attempts: 5
Change the content of a string - 1474 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #218 / 557
  • Number of attempts: 3
Braces or Brackets? - 882 entries

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

  • Best score: 34
  • Best player score: 34
  • Position: #34 / 287
  • Number of attempts: 10
Whitespace, empty lines and tabs - 3330 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #35 / 735
  • Number of attempts: 8
Flodder-challenge - 1117 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 27
  • Position: #30 / 311
  • Number of attempts: 12
Simple text editing with Vim - 12276 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1947 / 3578
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 6545 entries

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

  • Best score: 32
  • Best player score: 37
  • Position: #563 / 1610
  • Number of attempts: 4
Ilya Shakirov
Github:

entered into 12 challenges

contributed 0 challenges