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 - 32904 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: #1255 / 7270
  • Number of attempts: 4
One number per line - 18377 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1745 / 3787
  • Number of attempts: 4
Copy three lines - 2794 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 21
  • Position: #450 / 625
  • Number of attempts: 1
Start coding format - 129 entries

I used to start coding with following format: int main(){ -(cursor here) }

  • Best score: 22
  • Best player score: 22
  • Position: #27 / 64
  • Number of attempts: 4
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2568 / 4112
  • Number of attempts: 3
Team names - 1777 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #108 / 570
  • Number of attempts: 3
Make HTML List - 987 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 50
  • Position: #201 / 261
  • Number of attempts: 2
Converting group lines from format A to Format B - 20 entries

Convert from one format to another

  • Best score: 56
  • Best player score: 87
  • Position: #10 / 10
  • Number of attempts: 1
For all cases. - 127 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Position: #55 / 91
  • Number of attempts: 1
Fun With The Diagonal - 97 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Position: #55 / 74
  • Number of attempts: 2
Paragraph breaks - 483 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 10
  • Position: #32 / 160
  • Number of attempts: 6
Mirrored text - 162 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 15
  • Position: #25 / 69
  • Number of attempts: 4
camel riding - 745 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 16
  • Position: #138 / 267
  • Number of attempts: 3
Happy TvvO - 388 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #130 / 194
  • Number of attempts: 3
I forgot quotes - 15728 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #703 / 4114
  • Number of attempts: 8
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2246 / 3637
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2661 / 3919
  • Number of attempts: 1
Harder than "abcd > a b c d" - 75 entries

Not as easy as the last challenge. This time, just one space between a and b, up to 25 spaces between y and z. (Removed some lines; diff was too long.)

  • Best score: 15
  • Best player score: 25
  • Position: #29 / 38
  • Number of attempts: 3
The name of the game - 627 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #230 / 343
  • Number of attempts: 1
Vertical Limit - 2367 entries

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

  • Best score: 21
  • Best player score: 25
  • Position: #367 / 716
  • Number of attempts: 3
Remove noise from HTTP log - 660 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: #118 / 260
  • Number of attempts: 2
A Simple One - 924 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #470 / 612
  • Number of attempts: 2
Increment, increment, increment.... - 568 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #19 / 371
  • Number of attempts: 3
Whitespace, empty lines and tabs - 2979 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 22
  • Position: #262 / 663
  • Number of attempts: 7
slicklash
Twitter:

entered into 24 challenges

contributed 0 challenges