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

The holy-grail may help - 304 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 17
  • Position: #152 / 190
  • Number of attempts: 2
A Simple One - 875 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: #84 / 584
  • Number of attempts: 1
Round Round - 242 entries

Round Round

  • Best score: 19
  • Best player score: 114
  • Position: #64 / 80
  • Number of attempts: 1
Table Reshuffle - 326 entries

Fix the column order in this table... also append the new 'username' column.

  • Best score: 22
  • Best player score: 40
  • Position: #94 / 121
  • Number of attempts: 3
Reverse and count - 403 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 32
  • Position: #110 / 153
  • Number of attempts: 1
Letters are numbers - 127 entries

Letters and numbers are interchangeable. A lot of programming languages give you simple ways to convert individual letters to hex, binary and decimal but does Vim?

  • Best score: 20
  • Best player score: 32
  • Position: #47 / 66
  • Number of attempts: 1
Reverse Simple Deletion - 740 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #121 / 419
  • Number of attempts: 1
Increment, increment, increment.... - 531 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #79 / 357
  • Number of attempts: 3
The Cake is a Lie - 1168 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Position: #276 / 477
  • Number of attempts: 2
Make Fancy Header - 929 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 17
  • Position: #142 / 313
  • Number of attempts: 3
Change the content of a string - 1286 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 32
  • Position: #470 / 498
  • Number of attempts: 2
Braces or Brackets? - 645 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 107
  • Position: #237 / 240
  • Number of attempts: 1
David
Twitter:

entered into 12 challenges

contributed 0 challenges