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

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

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

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

  • Best score: 12
  • Best player score: 16
  • Position: #1166 / 1578
  • Number of attempts: 1
Just the middle - 11318 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #267 / 4152
  • Number of attempts: 2
Condensed Cases - 777 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 / 240
  • Number of attempts: 8
-a-b-c- - 3160 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #563 / 1124
  • Number of attempts: 3
Where should I put the Newline? - 857 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #352 / 429
  • Number of attempts: 1
Words in parens - 12821 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1449 / 3938
  • Number of attempts: 3
The Cake is a Lie - 1266 entries

Correct the capitalization of each word

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

Software Engineer at Pinterest. Go Bears!

entered into 8 challenges

contributed 0 challenges