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 - 693 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: #161 / 218
  • Number of attempts: 3
Python Hello World! Reformatting - 1057 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: #162 / 402
  • Number of attempts: 2
replacing each line of a block selection - 3070 entries

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

  • Best score: 7
  • Best player score: 31
  • Position: #681 / 791
  • Number of attempts: 1
switch variable - 5136 entries

how fast can you switch two variable ?

  • Best score: 9
  • Best player score: 14
  • Position: #1310 / 1767
  • Number of attempts: 1
Ugly spreadsheet copy/paste to CSV - 1046 entries

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

  • Best score: 19
  • Best player score: 50
  • Position: #158 / 199
  • Number of attempts: 3
Replacing some words - 445 entries

How fast could it be?

  • Best score: 17
  • Best player score: 21
  • Position: #79 / 152
  • Number of attempts: 2
Make it more readable - 2041 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Position: #14 / 659
  • Number of attempts: 4
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: 33
  • Position: #315 / 342
  • Number of attempts: 1
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: 19
  • Position: #40 / 186
  • Number of attempts: 4
Sort entries based on date - 432 entries

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

  • Best score: 11
  • Best player score: 12
  • Position: #62 / 121
  • Number of attempts: 2
imports alignment (python) - 729 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 17
  • Position: #31 / 205
  • Number of attempts: 4
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: 55
  • Position: #62 / 111
  • Number of attempts: 2
Numbering a List - 1970 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 21
  • Position: #387 / 662
  • Number of attempts: 7
Almost encrypted - 212 entries

Convert the first paragraph to be even less readable.

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

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

  • Best score: 7
  • Best player score: 19
  • Position: #230 / 872
  • Number of attempts: 6
Chris Penkett
Twitter:

entered into 15 challenges

contributed 0 challenges