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

Extract argument from function - 2194 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 16
  • Position: #457 / 723
  • Number of attempts: 4
Just the middle - 11080 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 10
  • Position: #3581 / 4091
  • Number of attempts: 1
VimGolfNight - 482 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #173 / 322
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10511 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2608 / 3628
  • Number of attempts: 2
Words in parens - 12682 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #402 / 3905
  • Number of attempts: 3
replacing each line of a block selection - 2744 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 29
  • Position: #592 / 725
  • Number of attempts: 1
Append semicolon after expressions - 925 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #300 / 377
  • Number of attempts: 1
Make it more readable - 1860 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Position: #438 / 613
  • Number of attempts: 2
remove dupes from array - 1260 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 24
  • Position: #217 / 321
  • Number of attempts: 1
Shebangs for all - 1730 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: 17
  • Position: #324 / 460
  • Number of attempts: 1
Simple text editing with Vim - 11393 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1219 / 3348
  • Number of attempts: 1
Alan Sherman
Twitter:

entered into 11 challenges

contributed 0 challenges