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

Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #144 / 4246
  • Number of attempts: 3
Basic renumbering - 5731 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 19
  • Position: #744 / 1277
  • Number of attempts: 3
Logging with key - 342 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 25
  • Position: #45 / 89
  • Number of attempts: 2
Space out the alphabet - 1690 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 19
  • Position: #235 / 454
  • Number of attempts: 1
Fill visual area - 107 entries

Just have fun!

  • Best score: 20
  • Best player score: 62
  • Position: #32 / 39
  • Number of attempts: 1
ASCII box - 365 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 28
  • Position: #78 / 110
  • Number of attempts: 1
Mute the second method of this script - 460 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 10
  • Position: #162 / 242
  • Number of attempts: 1
Winning streak - 156 entries

Make the number on each line equal the consecutive L's or W's.

  • Best score: 21
  • Best player score: 26
  • Position: #14 / 53
  • Number of attempts: 1
Sorting database text output - 229 entries

Sometimes it is nice to be able to quickly take column-formatted text output from the SQL command line and turn it into a list of useful data. In this case we want a unique, sorted list of the values from the second column combined into one comma-separated list. What is the fewest strokes you can do this in?

  • Best score: 24
  • Best player score: 25
  • Position: #43 / 85
  • Number of attempts: 6
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: 17
  • Position: #198 / 251
  • Number of attempts: 1
I forgot quotes - 16179 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1527 / 4218
  • Number of attempts: 2
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #537 / 1143
  • Number of attempts: 1
Words in parens - 13032 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2213 / 3986
  • Number of attempts: 2
Make Fancy Header - 1080 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 18
  • Position: #241 / 352
  • Number of attempts: 1
Jeremie
Twitter:

entered into 14 challenges

contributed 0 challenges