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

Cartesian product - 209 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 32
  • Position: #31 / 89
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2712 / 3637
  • Number of attempts: 1
The holy-grail may help - 315 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #44 / 194
  • Number of attempts: 2
Ruby 1.9 hashes - 1157 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 13
  • Position: #129 / 382
  • Number of attempts: 3
CSV to JSON - 144 entries

A search for shortest vimissh way to convert CSV to JSON.

  • Best score: 56
  • Best player score: 97
  • Position: #26 / 60
  • Number of attempts: 1
Shebangs for all - 1771 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: 12
  • Position: #79 / 467
  • Number of attempts: 4
A Simple One - 923 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: #131 / 611
  • Number of attempts: 1
82 bottles of beer on the wall - 286 entries

Take them down. (sorry, only 82 bottles because the problem size is limited!)

  • Best score: 107
  • Best player score: 117
  • Position: #29 / 133
  • Number of attempts: 3
Reverse Simple Deletion - 758 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #149 / 429
  • Number of attempts: 1
Increment, increment, increment.... - 567 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #135 / 370
  • Number of attempts: 1
The Cake is a Lie - 1197 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #72 / 487
  • Number of attempts: 3
Context insensitive completion 0 - 468 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 7
  • Best player score: 7
  • Position: #22 / 221
  • Number of attempts: 1
Context Insensitive completion 1 - 427 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #41 / 222
  • Number of attempts: 1
Almost encrypted - 180 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #36 / 136
  • Number of attempts: 1
Make Fancy Header - 963 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 17
  • Position: #155 / 326
  • Number of attempts: 2
Remember FizzBuzz? - 587 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 55
  • Position: #47 / 166
  • Number of attempts: 2
Flodder-challenge - 901 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 35
  • Position: #107 / 270
  • Number of attempts: 1
Clément Nodet
Twitter:

software engineer at Google

entered into 17 challenges

contributed 0 challenges