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

Interweave two blocks of text - 658 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: #158 / 213
  • Number of attempts: 3
Python Hello World! Reformatting - 989 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 43
  • Position: #153 / 379
  • Number of attempts: 2
replacing each line of a block selection - 2987 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 31
  • Position: #668 / 774
  • Number of attempts: 1
switch variable - 5061 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1290 / 1743
  • Number of attempts: 1
Ugly spreadsheet copy/paste to CSV - 998 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 50
  • Position: #150 / 190
  • Number of attempts: 3
Replacing some words - 425 entries

How fast could it be?

  • Best score: 17
  • Best player score: 21
  • Position: #77 / 150
  • Number of attempts: 2
Make it more readable - 1982 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Position: #14 / 645
  • Number of attempts: 4
remove dupes from array - 1347 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: 33
  • Position: #310 / 334
  • Number of attempts: 1
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: 19
  • Position: #40 / 180
  • Number of attempts: 4
Sort entries based on date - 392 entries

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

  • Best score: 11
  • Best player score: 12
  • Position: #59 / 117
  • Number of attempts: 2
imports alignment (python) - 700 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 17
  • Position: #31 / 198
  • Number of attempts: 4
expand a list comprehension (python) - 333 entries

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

  • Best score: 42
  • Best player score: 55
  • Position: #61 / 109
  • Number of attempts: 2
Numbering a List - 1929 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 21
  • Position: #378 / 651
  • Number of attempts: 7
Almost encrypted - 204 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #82 / 146
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3577 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 19
  • Position: #199 / 773
  • Number of attempts: 6
Chris Penkett
Twitter:

entered into 15 challenges

contributed 0 challenges