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

Split line with dots - 2075 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 18
  • Position: #264 / 616
  • Number of attempts: 1
Recursively Palindrome - 230 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 26
  • Position: #42 / 69
  • Number of attempts: 5
switch variable - 4865 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #994 / 1689
  • Number of attempts: 3
Make it more readable - 1860 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Position: #407 / 613
  • Number of attempts: 1
imports alignment (python) - 590 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 26
  • Position: #121 / 182
  • Number of attempts: 2
Rotating Philosophers Problem - 373 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: 32
  • Position: #96 / 157
  • Number of attempts: 4
HTML to Haml - 778 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 31
  • Position: #54 / 193
  • Number of attempts: 4
Reformat long lines - 320 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: 18
  • Position: #64 / 125
  • Number of attempts: 5
Generate English Alphabets - 427 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 28
  • Position: #162 / 190
  • Number of attempts: 1
Numbering a List - 1782 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 24
  • Position: #430 / 612
  • Number of attempts: 1
Java Array2List - 216 entries

Convert an java array initializer into a list.

  • Best score: 67
  • Best player score: 83
  • Position: #17 / 81
  • Number of attempts: 2
Assignment Alignment - 722 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 32
  • Position: #174 / 202
  • Number of attempts: 1
Shebangs for all - 1730 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: 20
  • Position: #377 / 460
  • Number of attempts: 2
A Simple One - 876 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: #139 / 585
  • Number of attempts: 1
The Cake is a Lie - 1174 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 12
  • Position: #433 / 479
  • Number of attempts: 2

Contributed Challenges

Assignment Alignment - 722 entries

line up the operators. Use spaces, not tabs.

Numbering a List - 1782 entries

Pretty simple, number the list.

Write Setters and Getters for PHP - 86 entries

Just simple automation of writing Setters and Getters like Doctrine might use.

Kevin Hamer
Twitter:

I make things go.

entered into 15 challenges

contributed 3 challenges