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

Winning streak - 105 entries

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

  • Best score: 21
  • Best player score: 26
  • Number of attempts: 1
Fill visual area - 70 entries

Just have fun!

  • Best score: 20
  • Best player score: 62
  • Number of attempts: 1
Logging with key - 275 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 25
  • Number of attempts: 2
-a-b-c- - 2611 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 1
Basic renumbering - 4634 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 19
  • Number of attempts: 3
I forgot quotes - 11966 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 2
Condensed Cases - 693 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
  • Number of attempts: 1
Mute the second method of this script - 411 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
ASCII box - 295 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 28
  • Number of attempts: 1
Space out the alphabet - 1381 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 19
  • Number of attempts: 1
Just the middle - 9337 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
Words in parens - 11108 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 2
Make Fancy Header - 917 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 18
  • Number of attempts: 1
Sorting database text output - 188 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
  • Number of attempts: 6
Jeremie
Twitter:

entered into 14 challenges

contributed 0 challenges