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

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Position: #401 / 683
  • Number of attempts: 4
Interweave two blocks of text - 574 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 16
  • Position: #44 / 204
  • Number of attempts: 4
Basic renumbering - 5430 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #307 / 1227
  • Number of attempts: 5
camel riding - 745 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 20
  • Position: #246 / 267
  • 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: 13
  • Position: #68 / 230
  • Number of attempts: 3
I forgot quotes - 15728 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #28 / 4114
  • Number of attempts: 5
Don't know what this is - 1948 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 14
  • Position: #321 / 571
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #539 / 3637
  • Number of attempts: 3
quotes inside quotes - 3026 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 16
  • Position: #588 / 1044
  • Number of attempts: 2
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1389 / 3919
  • Number of attempts: 3
Anderson Mesquita
Twitter:

Software Engineer, Aikidoist and philosopher

entered into 10 challenges

contributed 0 challenges