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

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

  • Best score: 24
  • Best player score: 32
  • Position: #42 / 91
  • Number of attempts: 1
Append semicolon after expressions - 953 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #259 / 387
  • Number of attempts: 3
switch variable - 4944 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #680 / 1708
  • Number of attempts: 2
The meaning - 522 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #81 / 337
  • Number of attempts: 1
remove dupes from array - 1290 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: #120 / 325
  • Number of attempts: 7
Case preserving word replacement - 436 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: #157 / 175
  • Number of attempts: 1
imports alignment (python) - 648 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 18
  • Position: #49 / 192
  • Number of attempts: 6
Rotating Philosophers Problem - 381 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: #110 / 160
  • Number of attempts: 1
expand a list comprehension (python) - 291 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: #38 / 104
  • Number of attempts: 3
Numbering a List - 1832 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 22
  • Position: #409 / 627
  • Number of attempts: 1
Ruby 1.9 hashes - 1172 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 / 386
  • Number of attempts: 4
Shebangs for all - 1777 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: #174 / 468
  • Number of attempts: 1
Increment, increment, increment.... - 591 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #203 / 378
  • Number of attempts: 1
The Cake is a Lie - 1215 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Position: #317 / 491
  • Number of attempts: 2
Fix the Haiku - 265 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: #29 / 106
  • Number of attempts: 3
Compile C - 340 entries

You might have to get clever to do this one.

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

seeker

entered into 16 challenges

contributed 0 challenges