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

Make HTML List - 917 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 50
  • Number of attempts: 2
Fun With The Diagonal - 86 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • 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
  • Number of attempts: 1
The name of the game - 587 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
I forgot quotes - 12724 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 8
A HAPPY NEW YEAR 2014 ! - 9723 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Copy three lines - 2237 entries

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

  • Best score: 13
  • Best player score: 21
  • Number of attempts: 1
Just the middle - 9685 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
Increment, increment, increment.... - 493 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 3
Remove noise from HTTP log - 618 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
  • Number of attempts: 2
A Simple One - 849 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
  • Number of attempts: 2
Words in parens - 11370 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 1
Start coding format - 119 entries

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

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 4
For all cases. - 105 entries

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

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 1
Mirrored text - 153 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 4
Team names - 1507 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 3
Paragraph breaks - 413 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
Vertical Limit - 2167 entries

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

  • Best score: 21
  • Best player score: 25
  • Number of attempts: 3
One number per line - 14188 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 4
Whitespace, empty lines and tabs - 2599 entries

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

  • Best score: 16
  • Best player score: 22
  • Number of attempts: 7
Happy TvvO - 357 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
Simple, Practical, and Common - 26811 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
  • Number of attempts: 4
camel riding - 697 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 3
Harder than "abcd > a b c d" - 64 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
  • Number of attempts: 3
slicklash
Twitter:

entered into 24 challenges

contributed 0 challenges