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

Simple, Practical, and Common - 33236 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
  • Position: #3125 / 7330
  • Number of attempts: 1
One number per line - 18559 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 24
  • Position: #3153 / 3830
  • Number of attempts: 2
From argument to object - 1448 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 22
  • Position: #371 / 443
  • Number of attempts: 2
Stairstep digits - 366 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 13
  • Position: #60 / 137
  • Number of attempts: 5
Sort files from hosts - 167 entries

Resume files by host. I hope you enjoy with this challenge

  • Best score: 15
  • Best player score: 15
  • Position: #9 / 70
  • Number of attempts: 3
Align commas - 1049 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 17
  • Position: #150 / 241
  • Number of attempts: 8
Collect List - 4228 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #924 / 1179
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10584 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #374 / 3653
  • Number of attempts: 5
Counting in binary - 447 entries

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

  • Best score: 16
  • Best player score: 61
  • Position: #105 / 112
  • Number of attempts: 1
quotes inside quotes - 3105 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 17
  • Position: #677 / 1066
  • Number of attempts: 3
Words in parens - 12821 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #48 / 3938
  • Number of attempts: 4
The Quick Brown Fox Jumps Over The Lazy Vim - 398 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 10
  • Position: #35 / 186
  • Number of attempts: 6
SFD-ROC: vimvimvim - 1550 entries

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

  • Best score: 8
  • Best player score: 14
  • Position: #324 / 435
  • Number of attempts: 4
Stairs Indenting - 442 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 14
  • Position: #62 / 191
  • Number of attempts: 2
you're stuck on jQuery < 1.7 - 335 entries

replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`

  • Best score: 25
  • Best player score: 34
  • Position: #85 / 110
  • Number of attempts: 3
Vertical Limit - 2399 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 29
  • Position: #593 / 727
  • Number of attempts: 1
HTML to Haml - 838 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 57
  • Position: #187 / 201
  • Number of attempts: 2
Hatsuyume - 442 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 16
  • Best player score: 20
  • Position: #25 / 173
  • Number of attempts: 4
Sort and add attributes - 1273 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 39
  • Position: #456 / 510
  • Number of attempts: 1
Simple text editing with Vim - 11962 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1055 / 3502
  • Number of attempts: 6
Tallak Tveide
Twitter:

entered into 20 challenges

contributed 0 challenges