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

That hyphen - 2649 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 14
  • Position: #566 / 712
  • Number of attempts: 6
Just the middle - 11620 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3331 / 4258
  • Number of attempts: 3
camel riding - 817 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 19
  • Position: #250 / 285
  • Number of attempts: 2
Condensed Cases - 829 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: 14
  • Position: #141 / 255
  • Number of attempts: 3
Lisp Condense - 485 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 15
  • Position: #101 / 163
  • Number of attempts: 6
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1178 / 1764
  • Number of attempts: 3
Make it more readable - 2039 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 15
  • Position: #293 / 658
  • Number of attempts: 3
Rolf
Twitter:

entered into 7 challenges

contributed 0 challenges