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

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

  • Best score: 24
  • Best player score: 32
  • Position: #46 / 102
  • Number of attempts: 1
Append semicolon after expressions - 1088 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #286 / 427
  • Number of attempts: 3
switch variable - 5131 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #707 / 1766
  • Number of attempts: 2
The meaning - 589 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #81 / 369
  • Number of attempts: 1
remove dupes from array - 1379 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 20
  • Position: #127 / 342
  • Number of attempts: 7
Case preserving word replacement - 477 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 25
  • Position: #167 / 186
  • Number of attempts: 1
imports alignment (python) - 728 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 18
  • Position: #52 / 204
  • Number of attempts: 6
Rotating Philosophers Problem - 421 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: #115 / 169
  • Number of attempts: 1
expand a list comprehension (python) - 348 entries

Please show your way to convert a list comprehension in python to an ordinary for-loop expression!

  • Best score: 42
  • Best player score: 50
  • Position: #42 / 111
  • Number of attempts: 3
Numbering a List - 1970 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 22
  • Position: #437 / 662
  • Number of attempts: 1
Ruby 1.9 hashes - 1315 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: #37 / 421
  • Number of attempts: 4
Shebangs for all - 2105 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: #198 / 534
  • Number of attempts: 1
Increment, increment, increment.... - 710 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #234 / 418
  • Number of attempts: 1
The Cake is a Lie - 1419 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 10
  • Position: #347 / 544
  • Number of attempts: 2
Fix the Haiku - 332 entries

Change this slightly scrambled haiku to its unscrambled form and fix the capitalisation and punctuation along the way.

  • Best score: 28
  • Best player score: 37
  • Position: #34 / 117
  • Number of attempts: 3
Compile C - 454 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 21
  • Position: #60 / 146
  • Number of attempts: 3
Ibrahim Tencer
Twitter:

seeker

entered into 16 challenges

contributed 0 challenges