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

Align commas - 1040 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 19
  • Position: #183 / 236
  • Number of attempts: 3
Manual SQL - 114 entries

Change select and insert queries to simulate inserting a new record.

  • Best score: 49
  • Best player score: 79
  • Position: #36 / 44
  • Number of attempts: 1
Transposition - 73 entries

Transpose the original lines in separate columns, one for each line.

  • Best score: 31
  • Best player score: 40
  • Position: #14 / 28
  • Number of attempts: 2
A simple change - 401 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 34
  • Position: #173 / 177
  • Number of attempts: 2
Convert pandoc unordered list to a numbered list - 157 entries

I know it's possible to use #. in pandoc to auto-generate numbered lists, but then it's not easy to tell how many items there are when reading it in Markdown. How fast can you make the switch?

  • Best score: 20
  • Best player score: 30
  • Position: #37 / 55
  • Number of attempts: 4
PEP8 Python Wrapping Comments and Code - 162 entries

According to PEP8, long flowy text and code should have different max line lengths. Code: 79 characters max Long flowy text: 72 characters max

  • Best score: 23
  • Best player score: 37
  • Position: #49 / 61
  • Number of attempts: 2
Get rid of html tags - 341 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 29
  • Position: #202 / 207
  • Number of attempts: 1
Sort and add attributes - 1211 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Position: #140 / 490
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3009 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #164 / 667
  • Number of attempts: 17
Flodder-challenge - 927 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 41
  • Position: #207 / 273
  • Number of attempts: 3
Simple text editing with Vim - 11657 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #980 / 3418
  • Number of attempts: 8
Reformat/Refactor a Golfer Class - 6033 entries

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

  • Best score: 32
  • Best player score: 38
  • Position: #566 / 1486
  • Number of attempts: 5
Sebastian Heil
Twitter:

Instructor for efficiency

entered into 12 challenges

contributed 0 challenges