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

Reorganize Pokémon - 473 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 19
  • Position: #41 / 131
  • Number of attempts: 7
Change readonly files - 49 entries

Try to write a file that was marked as read-only.

  • Best score: 20
  • Best player score: 20
  • Position: #5 / 17
  • Number of attempts: 7
Remove adjacent duplicates - 541 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 34
  • Position: #87 / 140
  • Number of attempts: 4
Harder than "abcd > a b c d" - 104 entries

Not as easy as the last challenge. This time, just one space between a and b, up to 25 spaces between y and z. (Removed some lines; diff was too long.)

  • Best score: 15
  • Best player score: 24
  • Position: #30 / 46
  • Number of attempts: 2
lamb had a little Mary - 630 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 33
  • Position: #70 / 171
  • Number of attempts: 8
Shebangs for all - 2018 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 11
  • Position: #76 / 519
  • Number of attempts: 7
Simple text editing with Vim - 13012 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2033 / 3743
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 7172 entries

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

  • Best score: 28
  • Best player score: 41
  • Position: #947 / 1760
  • Number of attempts: 9
Eran
Github:

entered into 8 challenges

contributed 0 challenges