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 - 2215 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #122 / 728
  • Number of attempts: 6
Search and Replace 0 - 4651 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #1137 / 1541
  • Number of attempts: 1
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #267 / 4112
  • Number of attempts: 2
Condensed Cases - 752 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 12
  • Position: #29 / 230
  • Number of attempts: 8
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #555 / 1112
  • Number of attempts: 3
Where should I put the Newline? - 842 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #349 / 421
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1436 / 3919
  • Number of attempts: 3
The Cake is a Lie - 1203 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #418 / 488
  • Number of attempts: 1
Sahana Rajasekar
Twitter:

Software Engineer at Pinterest. Go Bears!

entered into 8 challenges

contributed 0 challenges