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 - 32904 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: #3091 / 7270
  • Number of attempts: 1
One number per line - 18377 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 24
  • Position: #3121 / 3787
  • Number of attempts: 2
From argument to object - 1262 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: #348 / 417
  • Number of attempts: 2
Stairstep digits - 245 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 13
  • Position: #51 / 116
  • Number of attempts: 5
Sort files from hosts - 145 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #9 / 65
  • Number of attempts: 3
Align commas - 1040 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: #146 / 236
  • Number of attempts: 8
Collect List - 4178 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Position: #915 / 1166
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10533 entries

A HAPPY NEW YEAR 2014 !

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

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

  • Best score: 16
  • Best player score: 61
  • Position: #101 / 108
  • Number of attempts: 1
quotes inside quotes - 3026 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: #660 / 1044
  • Number of attempts: 3
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #41 / 3919
  • Number of attempts: 4
The Quick Brown Fox Jumps Over The Lazy Vim - 388 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: #32 / 180
  • Number of attempts: 6
SFD-ROC: vimvimvim - 1508 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: #318 / 424
  • Number of attempts: 4
Stairs Indenting - 424 entries

Indent each line with <line number> whitespaces.

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

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

  • Best score: 25
  • Best player score: 34
  • Position: #83 / 107
  • Number of attempts: 3
Vertical Limit - 2367 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #585 / 716
  • Number of attempts: 1
HTML to Haml - 800 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 57
  • Position: #184 / 197
  • Number of attempts: 2
Hatsuyume - 413 entries

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

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

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

  • Best score: 33
  • Best player score: 39
  • Position: #433 / 483
  • Number of attempts: 1
Simple text editing with Vim - 11624 entries

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

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

entered into 20 challenges

contributed 0 challenges