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 - 33535 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: #3153 / 7397
  • Number of attempts: 1
One number per line - 18705 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 24
  • Position: #3176 / 3855
  • Number of attempts: 2
From argument to object - 1503 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: #383 / 455
  • Number of attempts: 2
Stairstep digits - 392 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 13
  • Position: #61 / 144
  • Number of attempts: 5
Sort files from hosts - 188 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #9 / 76
  • Number of attempts: 3
Align commas - 1092 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: #154 / 245
  • Number of attempts: 8
Collect List - 4298 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #932 / 1190
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10654 entries

A HAPPY NEW YEAR 2014 !

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

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

  • Best score: 16
  • Best player score: 61
  • Position: #108 / 115
  • Number of attempts: 1
quotes inside quotes - 3154 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: #684 / 1075
  • Number of attempts: 3
Words in parens - 12918 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #53 / 3957
  • Number of attempts: 4
The Quick Brown Fox Jumps Over The Lazy Vim - 416 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: #37 / 191
  • Number of attempts: 6
SFD-ROC: vimvimvim - 1606 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: #332 / 446
  • Number of attempts: 4
Stairs Indenting - 473 entries

Indent each line with <line number> whitespaces.

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

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

  • Best score: 25
  • Best player score: 34
  • Position: #87 / 113
  • Number of attempts: 3
Vertical Limit - 2522 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #612 / 751
  • Number of attempts: 1
HTML to Haml - 878 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 57
  • Position: #190 / 204
  • Number of attempts: 2
Hatsuyume - 495 entries

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

  • Best score: 15
  • Best player score: 20
  • Position: #30 / 182
  • Number of attempts: 4
Sort and add attributes - 1418 entries

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

  • Best score: 33
  • Best player score: 39
  • Position: #492 / 551
  • Number of attempts: 1
Simple text editing with Vim - 12627 entries

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

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

entered into 20 challenges

contributed 0 challenges