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

Delete the instructions at the top and bottom.

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

Renumbering Basic.

  • Best score: 11
  • Best player score: 19
  • Position: #708 / 1228
  • Number of attempts: 3
Logging with key - 292 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 25
  • Position: #41 / 84
  • Number of attempts: 2
Space out the alphabet - 1595 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 19
  • Position: #225 / 434
  • Number of attempts: 1
Fill visual area - 77 entries

Just have fun!

  • Best score: 20
  • Best player score: 62
  • Position: #27 / 34
  • Number of attempts: 1
ASCII box - 317 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 28
  • Position: #71 / 102
  • Number of attempts: 1
Mute the second method of this script - 439 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 10
  • Position: #156 / 233
  • Number of attempts: 1
Winning streak - 113 entries

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

  • Best score: 21
  • Best player score: 26
  • Position: #11 / 48
  • Number of attempts: 1
Sorting database text output - 206 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: #39 / 79
  • Number of attempts: 6
Condensed Cases - 758 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: #185 / 231
  • Number of attempts: 1
I forgot quotes - 15748 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1489 / 4116
  • Number of attempts: 2
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #519 / 1112
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2169 / 3919
  • Number of attempts: 2
Make Fancy Header - 978 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 18
  • Position: #230 / 329
  • Number of attempts: 1
Jeremie
Twitter:

entered into 14 challenges

contributed 0 challenges