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

switch variable - 4614 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 3
Assign list - 146 entries

Assign list elements to matrix

  • Best score: 30
  • Best player score: 52
  • Number of attempts: 2
Split the words - 338 entries

Add the spaces manually if you must, but if you use Vim's spell checking feature wisely, I think you'll save a LARGE number of strokes.

  • Best score: 18
  • Best player score: 41
  • Number of attempts: 2
Saving the hashes(#) - 1861 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 29
  • Number of attempts: 1
VimGolfNight - 469 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 1
attr_aligner - 3237 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 32
  • Number of attempts: 2
Pairs of numbers - 338 entries

Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"

  • Best score: 26
  • Best player score: 40
  • Number of attempts: 3
Words in parens - 11996 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 2
Simple, Practical, and Common - 29847 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 25
  • Number of attempts: 6
Counting in binary - 402 entries

"a" represents 0; "A" represents 1. Start from zero and count to 15.

  • Best score: 16
  • Best player score: 37
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 5661 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 39
  • Number of attempts: 3
Fiddle percentages into real numbers - 761 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 3
Simple text editing with Vim - 11015 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 3
Ugly spreadsheet copy/paste to CSV - 747 entries

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

  • Best score: 19
  • Best player score: 32
  • Number of attempts: 2
Make it more readable - 1797 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 4
Create Leading Zeros - 192 entries

Create leading zeros only for id columns. Please use generic approach!

  • Best score: 23
  • Best player score: 28
  • Number of attempts: 1
I forgot quotes - 14296 entries

Oops.

  • Best score: 10
  • Best player score: 19
  • Number of attempts: 1
Switch function arguments - 1878 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 4
evilmoe ☮
Twitter:

Software Developer and Nerd

entered into 18 challenges

contributed 0 challenges