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

Search and Replace 0 - 4790 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 13
  • Position: #742 / 1585
  • Number of attempts: 4
Interweave two blocks of text - 631 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 19
  • Position: #153 / 211
  • Number of attempts: 3
The name of the game - 646 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #27 / 354
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1569 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 9
  • Position: #139 / 437
  • Number of attempts: 4
SFD-ROC: Pipe Dreams - 99 entries

Move the pipes so they match the output.

  • Best score: 12
  • Best player score: 18
  • Position: #31 / 44
  • Number of attempts: 1
switch variable - 5028 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #7 / 1734
  • Number of attempts: 2
Replacing some words - 419 entries

How fast could it be?

  • Best score: 17
  • Best player score: 17
  • Position: #2 / 148
  • Number of attempts: 6
Sort the cardinal numbers - 293 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 14
  • Position: #103 / 146
  • Number of attempts: 1
Make it more readable - 1952 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Position: #420 / 640
  • Number of attempts: 2
Line Zipper - 450 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 34
  • Position: #206 / 210
  • Number of attempts: 1
Case preserving word replacement - 453 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: 19
  • Position: #35 / 179
  • Number of attempts: 2
Sort entries based on date - 362 entries

Sort some entries in a Ledger-file based on date.

  • Best score: 11
  • Best player score: 15
  • Position: #78 / 114
  • Number of attempts: 2
imports alignment (python) - 661 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 37
  • Position: #175 / 194
  • Number of attempts: 1
HTML to Haml - 842 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 40
  • Position: #111 / 202
  • Number of attempts: 5
expand a list comprehension (python) - 301 entries

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

  • Best score: 42
  • Best player score: 64
  • Position: #86 / 106
  • Number of attempts: 2
Numbering a List - 1855 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 29
  • Position: #582 / 638
  • Number of attempts: 2
Ruby 1.9 hashes - 1216 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: 17
  • Position: #314 / 398
  • Number of attempts: 1
Assignment Alignment - 829 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 31
  • Position: #177 / 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: 13
  • Position: #180 / 497
  • Number of attempts: 8
Reverse Simple Deletion - 832 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 13
  • Position: #380 / 454
  • Number of attempts: 1
Burkhard Zimmermann
Twitter:

entered into 20 challenges

contributed 0 challenges