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

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

  • Best score: 7
  • Best player score: 8
  • Position: #813 / 1914
  • Number of attempts: 1
Extract argument from function - 2427 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #8 / 772
  • Number of attempts: 2
Swap assigned value - 694 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #64 / 263
  • Number of attempts: 2
Subtraction - 201 entries

Solve the equations.

  • Best score: 18
  • Best player score: 22
  • Position: #25 / 63
  • Number of attempts: 3
NBCU Weekly Challenge - Test - 264 entries

Just testing.

  • Best score: 18
  • Best player score: 18
  • Position: #8 / 120
  • Number of attempts: 2
Change name of a variable - 196 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: #37 / 147
  • Number of attempts: 2
Don't know what this is - 2066 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: 11
  • Position: #11 / 594
  • Number of attempts: 5
Where should I put the Newline? - 908 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #22 / 449
  • Number of attempts: 2
Mess in revision history - 1233 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 23
  • Position: #127 / 258
  • Number of attempts: 1
HTML formatting: vertical alignment for readability - 100 entries

We did this a VimGolf challenge at work and now that we have finished I want to see if you guys can come up with something even better than we could. Our best solution was 44 keystrokes.

  • Best score: 32
  • Best player score: 45
  • Position: #19 / 38
  • Number of attempts: 2
Minimalist Limerick - 539 entries

Reproduce this lovely poem.

  • Best score: 30
  • Best player score: 31
  • Position: #16 / 177
  • Number of attempts: 4
Saving the hashes(#) - 2116 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: 22
  • Position: #135 / 488
  • Number of attempts: 2
Vertical Limit - 2637 entries

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

  • Best score: 21
  • Best player score: 24
  • Position: #296 / 778
  • Number of attempts: 1
Remove noise from HTTP log - 758 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 15
  • Position: #88 / 281
  • Number of attempts: 2
The meaning - 588 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #220 / 368
  • Number of attempts: 1
Shebangs for all - 2101 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 11
  • Position: #19 / 532
  • Number of attempts: 6
The Cake is a Lie - 1416 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 9
  • Position: #172 / 542
  • Number of attempts: 2
Make Fancy Header - 1108 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 16
  • Position: #86 / 356
  • Number of attempts: 5
Reformat a C golf submission - 678 entries

Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.

  • Best score: 22
  • Best player score: 25
  • Position: #21 / 220
  • Number of attempts: 4
Sort and add attributes - 1591 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 33
  • Position: #174 / 615
  • Number of attempts: 1
vimgolf copycat
Twitter:

entered into 20 challenges

contributed 0 challenges