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 - 2131 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 18
  • Position: #267 / 633
  • Number of attempts: 1
Recursively Palindrome - 245 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 26
  • Position: #46 / 74
  • Number of attempts: 5
switch variable - 5045 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1029 / 1742
  • Number of attempts: 3
Make it more readable - 1955 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Position: #429 / 643
  • Number of attempts: 1
imports alignment (python) - 663 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 26
  • Position: #128 / 196
  • Number of attempts: 2
Rotating Philosophers Problem - 392 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: #100 / 165
  • Number of attempts: 4
HTML to Haml - 843 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 31
  • Position: #59 / 203
  • Number of attempts: 4
Reformat long lines - 346 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: #70 / 133
  • Number of attempts: 5
Generate English Alphabets - 476 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 28
  • Position: #169 / 205
  • Number of attempts: 1
Numbering a List - 1869 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 24
  • Position: #460 / 646
  • Number of attempts: 1
Java Array2List - 227 entries

Convert an java array initializer into a list.

  • Best score: 67
  • Best player score: 83
  • Position: #19 / 85
  • Number of attempts: 2
Assignment Alignment - 842 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 32
  • Position: #188 / 217
  • Number of attempts: 1
Shebangs for all - 1917 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: #400 / 502
  • Number of attempts: 2
A Simple One - 1009 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 / 648
  • Number of attempts: 1
The Cake is a Lie - 1301 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 12
  • Position: #466 / 517
  • Number of attempts: 2

Contributed Challenges

Assignment Alignment - 842 entries

line up the operators. Use spaces, not tabs.

Numbering a List - 1869 entries

Pretty simple, number the list.

Write Setters and Getters for PHP - 87 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