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

constructor - 161 entries

coding a constructor for a simple class

  • Best score: 59
  • Best player score: 124
  • Number of attempts: 2
Case preserving word replacement - 385 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: 21
  • Number of attempts: 2
Line Zipper - 396 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 16
  • Number of attempts: 2
Another Mixed-Up Haiku - 196 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 24
  • Number of attempts: 1
Alphabetize the directory - 252 entries

Put the contacts and their information in alphabetical order.

  • Best score: 30
  • Best player score: 34
  • Number of attempts: 3
82 bottles of beer on the wall - 243 entries

Take them down. (sorry, only 82 bottles because the problem size is limited!)

  • Best score: 107
  • Best player score: 121
  • Number of attempts: 1
Make it more readable - 1755 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 4
Reverse Simple Deletion - 710 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 1
The Cake is a Lie - 1119 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
switch variable - 4302 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Ugly spreadsheet copy/paste to CSV - 725 entries

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

  • Best score: 19
  • Best player score: 42
  • Number of attempts: 2
Remember FizzBuzz? - 531 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 61
  • Number of attempts: 1
Shebangs for all - 1593 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
  • Number of attempts: 5
replacing each line of a block selection - 2513 entries

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

  • Best score: 18
  • Best player score: 21
  • Number of attempts: 1
Sort the cardinal numbers - 215 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 1
Assignment Alignment - 695 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 25
  • Number of attempts: 1
Overall Vimgolf Rank - 132 entries

Suppose you are trying to figure out what your overall rank is at Vimgolf(the sum of all the ranks you got), and as a Vim ninja you decided to use Vim to do the job. Your solution should work for every Vimgolf profile page(The actual input file for this challenge is my Vimgolf profile page). So, direct answer insertion is considered cheating.

  • Best score: 23
  • Best player score: 27
  • Number of attempts: 9
Replacing some words - 400 entries

How fast could it be?

  • Best score: 17
  • Best player score: 21
  • Number of attempts: 2
Prime Numbers - 263 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 96
  • Number of attempts: 2
Complete the hex array data (Part II) - 123 entries

Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]

  • Best score: 20
  • Best player score: 26
  • Number of attempts: 1
Numbering a List - 1728 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 20
  • Number of attempts: 2
imports alignment (python) - 577 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 19
  • Number of attempts: 3
Reverse and count - 379 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 29
  • Number of attempts: 1
Java Array2List - 214 entries

Convert an java array initializer into a list.

  • Best score: 67
  • Best player score: 88
  • Number of attempts: 2
Kurt Gaastra
Twitter:

entered into 24 challenges

contributed 0 challenges