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

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

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

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

  • Best score: 12
  • Best player score: 16
  • Position: #1234 / 1667
  • Number of attempts: 1
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #267 / 4246
  • Number of attempts: 2
Condensed Cases - 820 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 / 251
  • Number of attempts: 8
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #573 / 1143
  • Number of attempts: 3
Where should I put the Newline? - 897 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #359 / 445
  • Number of attempts: 1
Words in parens - 13032 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1473 / 3986
  • Number of attempts: 3
The Cake is a Lie - 1390 entries

Correct the capitalization of each word

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

Software Engineer at Pinterest. Go Bears!

entered into 8 challenges

contributed 0 challenges