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

V to the i - 4864 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Position: #1014 / 1912
  • Number of attempts: 2
Extract argument from function - 2401 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #528 / 768
  • Number of attempts: 1
That hyphen - 2624 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 12
  • Position: #432 / 708
  • Number of attempts: 1
Just the middle - 11613 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1731 / 4253
  • Number of attempts: 1
Collect List - 4333 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1040 / 1197
  • Number of attempts: 1
Logging with key - 342 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 39
  • Position: #77 / 89
  • Number of attempts: 1
Mute the second method of this script - 461 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 10
  • Position: #179 / 243
  • Number of attempts: 1
Happy TvvO - 438 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 13
  • Position: #178 / 210
  • Number of attempts: 2
-a-b-c- - 3237 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Position: #813 / 1145
  • Number of attempts: 1
Count both ways - 1037 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #214 / 359
  • Number of attempts: 1
Change name of a variable - 187 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #93 / 144
  • Number of attempts: 1
Don't know what this is - 2048 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 16
  • Position: #503 / 592
  • Number of attempts: 1
Words in parens - 13034 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2285 / 3988
  • Number of attempts: 1
Let's play some Ivmgolf - 1153 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #281 / 457
  • Number of attempts: 1
Vertical Limit - 2634 entries

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

  • Best score: 21
  • Best player score: 27
  • Position: #557 / 776
  • Number of attempts: 1
Switch function arguments - 2204 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 13
  • Position: #415 / 681
  • Number of attempts: 1
Ruby 1.9 hashes - 1293 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 17
  • Position: #335 / 417
  • Number of attempts: 2
Change the content of a string - 1779 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 24
  • Position: #380 / 651
  • Number of attempts: 1
Kiet Nguyen
Twitter:

entered into 18 challenges

contributed 0 challenges