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

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Position: #413 / 708
  • Number of attempts: 4
Interweave two blocks of text - 661 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: #51 / 215
  • Number of attempts: 4
Basic renumbering - 5731 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #337 / 1277
  • Number of attempts: 5
camel riding - 796 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 20
  • Position: #259 / 282
  • Number of attempts: 1
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: 13
  • Position: #74 / 251
  • Number of attempts: 3
I forgot quotes - 16176 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #28 / 4216
  • Number of attempts: 5
Don't know what this is - 2036 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: #331 / 589
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10743 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #539 / 3710
  • Number of attempts: 3
quotes inside quotes - 3191 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: #615 / 1088
  • Number of attempts: 2
Words in parens - 13024 entries

We should all ace this, right?

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

Software Engineer, Aikidoist and philosopher

entered into 10 challenges

contributed 0 challenges