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

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

  • Best score: 7
  • Best player score: 8
  • Position: #832 / 1856
  • Number of attempts: 1
Extract argument from function - 2215 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #476 / 728
  • Number of attempts: 2
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 10
  • Position: #3634 / 4112
  • Number of attempts: 2
Collect List - 4178 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Position: #742 / 1166
  • Number of attempts: 3
I forgot quotes - 15728 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1564 / 4114
  • Number of attempts: 5
Suffix sort - 219 entries

Sort from the end of the line, as if the letters in each line were reversed.

  • Best score: 19
  • Best player score: 27
  • Position: #40 / 61
  • Number of attempts: 4
Change name of a variable - 161 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: #53 / 125
  • Number of attempts: 1
Don't know what this is - 1948 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: 14
  • Position: #289 / 571
  • Number of attempts: 4
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2108 / 3919
  • Number of attempts: 1
Chucking wood - 80 entries

An exercise in compressing repetitive text. For this challenge, any entry that uses keys outside the main row (such as arrow keys, Home, End, Delete, etc.) will be removed. (Esc is OK, though you should be using C-[ anyway.)

  • Best score: 51
  • Best player score: 58
  • Position: #26 / 38
  • Number of attempts: 1
Saving the hashes(#) - 1961 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 28
  • Position: #284 / 466
  • Number of attempts: 1
Florian L├╝cke
Twitter:

entered into 11 challenges

contributed 0 challenges