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

This line is too long, split it.

  • Best score: 15
  • Best player score: 18
  • Position: #266 / 629
  • Number of attempts: 1
Recursively Palindrome - 239 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 26
  • Position: #45 / 73
  • Number of attempts: 5
switch variable - 5028 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1025 / 1734
  • Number of attempts: 3
Make it more readable - 1952 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Position: #428 / 640
  • Number of attempts: 1
imports alignment (python) - 661 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 26
  • Position: #127 / 194
  • Number of attempts: 2
Rotating Philosophers Problem - 388 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: #99 / 163
  • Number of attempts: 4
HTML to Haml - 842 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 31
  • Position: #58 / 202
  • Number of attempts: 4
Reformat long lines - 341 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: #69 / 130
  • Number of attempts: 5
Generate English Alphabets - 463 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 28
  • Position: #168 / 198
  • Number of attempts: 1
Numbering a List - 1855 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 24
  • Position: #454 / 638
  • Number of attempts: 1
Java Array2List - 225 entries

Convert an java array initializer into a list.

  • Best score: 67
  • Best player score: 83
  • Position: #18 / 83
  • Number of attempts: 2
Assignment Alignment - 829 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 32
  • Position: #186 / 215
  • Number of attempts: 1
Shebangs for all - 1904 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: #398 / 497
  • Number of attempts: 2
A Simple One - 996 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 / 641
  • Number of attempts: 1
The Cake is a Lie - 1284 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 12
  • Position: #462 / 511
  • Number of attempts: 2

Contributed Challenges

Assignment Alignment - 829 entries

line up the operators. Use spaces, not tabs.

Numbering a List - 1855 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