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

Word Blender - 129 entries

The insides of long words seem to have been run through the blender. Can you fix this famous tale, brave knight?

  • Best score: 28
  • Best player score: 69
  • Position: #39 / 54
  • Number of attempts: 2
Search and Replace 0 - 4651 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 14
  • Position: #855 / 1541
  • Number of attempts: 1
Generate Fibonacci Numbers - 251 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 24
  • Position: #66 / 94
  • Number of attempts: 1
Rotating Philosophers Problem - 376 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 30
  • Position: #33 / 159
  • Number of attempts: 2
Before there was Farmville... - 95 entries

There was old MacDonald. For my toddler. The first Vim sing-a-long?

  • Best score: 156
  • Best player score: 229
  • Position: #29 / 46
  • Number of attempts: 1
Reformat long lines - 329 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 24
  • Position: #116 / 129
  • Number of attempts: 1
Generate English Alphabets - 438 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 25
  • Position: #86 / 194
  • Number of attempts: 2
Solve the Sokoban - 160 entries

A wink for all Vimgolfers that play Nethack too.

  • Best score: 25
  • Best player score: 31
  • Position: #40 / 70
  • 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: #28 / 194
  • Number of attempts: 1
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: 12
  • Position: #8 / 382
  • Number of attempts: 4
CSV to JSON - 144 entries

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

  • Best score: 56
  • Best player score: 115
  • Position: #36 / 60
  • Number of attempts: 2
Assignment Alignment - 770 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 27
  • Position: #120 / 210
  • Number of attempts: 2
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: 13
  • Position: #163 / 467
  • Number of attempts: 5
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: #166 / 612
  • Number of attempts: 1
Reverse Simple Deletion - 759 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 20
  • Position: #417 / 429
  • 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: #51 / 136
  • Number of attempts: 1
Reverse characters in a line - 645 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 13
  • Position: #20 / 236
  • Number of attempts: 1
Change the content of a string - 1350 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #210 / 521
  • Number of attempts: 2
Braces or Brackets? - 710 entries

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

  • Best score: 34
  • Best player score: 40
  • Position: #62 / 253
  • Number of attempts: 1
Clive Evans
Twitter:

entered into 19 challenges

contributed 0 challenges