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

comments galore - 970 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #36 / 410
  • Number of attempts: 1
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: 24
  • Position: #217 / 230
  • Number of attempts: 1
Pretty format for variable declarations - 137 entries

Project standards demand the equal signs must be aligned for better readability.

  • Best score: 14
  • Best player score: 15
  • Position: #21 / 54
  • Number of attempts: 1
Refactor to Helpers - 45 entries

This Rails partial is almost all template escapes. Put it into a helper, and refactor each case to methods so we can build out the controls for each. (I've converted to tabs - fighting with Vimgolf's default config shouldn't be part of the challenge.)

  • Best score: 147
  • Best player score: 817
  • Position: #21 / 22
  • Number of attempts: 1
Simple text editing with Vim - 11637 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #301 / 3413
  • Number of attempts: 1
 River
Twitter:

夫唯不争,故天下莫能与之争 ding ding ding .....

entered into 5 challenges

contributed 0 challenges