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

Simple, Practical, and Common - 33801 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #353 / 7459
  • Number of attempts: 7
Swap values - 4651 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #389 / 1278
  • Number of attempts: 4
Extract argument from function - 2372 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #342 / 757
  • Number of attempts: 3
Just the middle - 11523 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1860 / 4222
  • Number of attempts: 1
Basic renumbering - 5693 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 15
  • Position: #524 / 1271
  • Number of attempts: 10
comments galore - 1073 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Position: #340 / 429
  • Number of attempts: 1
Line 'em up! - 421 entries

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

  • Best score: 17
  • Best player score: 17
  • Position: #4 / 114
  • Number of attempts: 1
Condensed Cases - 807 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 / 248
  • Number of attempts: 2
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #954 / 1138
  • Number of attempts: 1
Words in parens - 12980 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1526 / 3972
  • Number of attempts: 3
Vertical Limit - 2576 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 25
  • Position: #368 / 762
  • Number of attempts: 1
antew
Twitter:

entered into 11 challenges

contributed 0 challenges