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 - 33385 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: #25 / 7364
  • Number of attempts: 5
Swap values - 4543 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #643 / 1257
  • Number of attempts: 2
Basic renumbering - 5587 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #21 / 1258
  • Number of attempts: 1
Words in parens - 12858 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2244 / 3946
  • Number of attempts: 1
SFD-ROC: Tic-Tac-Toe - 134 entries

Tic-Tac-Toe You are 'X', and it is your turn. Stop 'O' from winning, and complete the game. Draw a diagonal line through your winning row of three X's.

  • Best score: 25
  • Best player score: 30
  • Position: #14 / 51
  • Number of attempts: 2
SFD-ROC: The Quick Brown Fox - 169 entries

Someone has vandalized our text (again). Please fix to read: The Quick Brown Fox Jumps Over The Lazy Dog.

  • Best score: 24
  • Best player score: 28
  • Position: #35 / 101
  • Number of attempts: 1
SFD-ROC: ASCII Logo Border - 71 entries

Draw a border around this familiar logo ;)

  • Best score: 20
  • Best player score: 40
  • Position: #27 / 31
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1581 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 14
  • Position: #316 / 439
  • Number of attempts: 1
SFD-ROC: Pipe Dreams - 101 entries

Move the pipes so they match the output.

  • Best score: 12
  • Best player score: 14
  • Position: #12 / 45
  • Number of attempts: 3
Enharmonic Equivalents - 56 entries

Transform # and b to digraphs

  • Best score: 18
  • Best player score: 20
  • Position: #28 / 35
  • Number of attempts: 1
Multiplication table. - 205 entries

Create a multiplication table.

  • Best score: 31
  • Best player score: 71
  • Position: #29 / 63
  • Number of attempts: 5
Line Zipper - 450 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 16
  • Position: #139 / 210
  • Number of attempts: 1
PHP <--> Java class conversion Part 2 - 96 entries

Same class but reverse!

  • Best score: 80
  • Best player score: 106
  • Position: #14 / 38
  • Number of attempts: 1
Alphabetize the directory - 283 entries

Put the contacts and their information in alphabetical order.

  • Best score: 30
  • Best player score: 32
  • Position: #30 / 99
  • Number of attempts: 2
PHP Array Syntax -> MailChimp Merge Syntax - 507 entries

I recently needed to send an e-mail to our marketing department listing allowed merge tags for our MailChimp campaigns. The allowed merge tags were determined from a PHP array in one of our PHP classes. I transformed the PHP class to MailChimp's syntax and sent the e-mail. It was, however, a long, laborious process. I'm still fairly new to Vim and would love to see how an expert Vim user would tackle one of my own, real-world problems. Thanks and have fun!

  • Best score: 23
  • Best player score: 33
  • Position: #79 / 148
  • Number of attempts: 1
Complete the hex array data - 195 entries

Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]

  • Best score: 23
  • Best player score: 27
  • Position: #34 / 72
  • Number of attempts: 1
Sort entries based on date - 363 entries

Sort some entries in a Ledger-file based on date.

  • Best score: 11
  • Best player score: 16
  • Position: #83 / 114
  • Number of attempts: 1
Numbering a List - 1859 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #197 / 639
  • Number of attempts: 4
Jer Wilson
Twitter:

I ask that you judge me by the tweets that I tweet.

entered into 18 challenges

contributed 0 challenges