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

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

  • Best score: 24
  • Best player score: 32
  • Position: #45 / 97
  • Number of attempts: 1
Append semicolon after expressions - 1056 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #279 / 419
  • Number of attempts: 3
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #697 / 1749
  • Number of attempts: 2
The meaning - 575 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #81 / 363
  • Number of attempts: 1
remove dupes from array - 1358 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: #126 / 336
  • Number of attempts: 7
Case preserving word replacement - 454 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: #162 / 180
  • Number of attempts: 1
imports alignment (python) - 700 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 18
  • Position: #51 / 198
  • Number of attempts: 6
Rotating Philosophers Problem - 410 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: #113 / 166
  • Number of attempts: 1
expand a list comprehension (python) - 334 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: #41 / 110
  • Number of attempts: 3
Numbering a List - 1935 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 22
  • Position: #431 / 654
  • Number of attempts: 1
Ruby 1.9 hashes - 1249 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 / 407
  • Number of attempts: 4
Shebangs for all - 2018 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: #190 / 519
  • Number of attempts: 1
Increment, increment, increment.... - 696 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #228 / 411
  • Number of attempts: 1
The Cake is a Lie - 1365 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Position: #339 / 532
  • Number of attempts: 2
Fix the Haiku - 313 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: #33 / 114
  • Number of attempts: 3
Compile C - 430 entries

You might have to get clever to do this one.

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

seeker

entered into 16 challenges

contributed 0 challenges