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

Search and Replace 0 - 5004 entries

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

  • Best score: 12
  • Best player score: 18
  • Position: #1364 / 1630
  • Number of attempts: 2
Just the middle - 11484 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #25 / 4209
  • Number of attempts: 5
Basic renumbering - 5683 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #984 / 1269
  • Number of attempts: 2
Refactoring useless Method away - 116 entries

Real-life challenge, convert a bunch of ifs to a switch statement

  • Best score: 47
  • Best player score: 47
  • Position: #3 / 34
  • Number of attempts: 3
I forgot quotes - 16022 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #41 / 4189
  • Number of attempts: 9
Change name of a variable - 179 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #58 / 137
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10682 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #555 / 3689
  • Number of attempts: 3
Kentaro Wakayama
Twitter:

JavaScript Developer at @Brandwatch

entered into 7 challenges

contributed 0 challenges