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 - 32962 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: 28
  • Position: #4053 / 7276
  • Number of attempts: 4
Extract argument from function - 2218 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 16
  • Position: #474 / 729
  • Number of attempts: 2
ASCII box - 317 entries

Don't forget to fix typos!

  • Best score: 23
  • Best player score: 25
  • Position: #53 / 102
  • Number of attempts: 4
Mute the second method of this script - 439 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 10
  • Position: #157 / 233
  • Number of attempts: 1
I forgot quotes - 15748 entries

Oops.

  • Best score: 10
  • Best player score: 20
  • Position: #3541 / 4116
  • Number of attempts: 1
Mess in revision history - 1143 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 27
  • Position: #153 / 242
  • Number of attempts: 1
Going underground.... - 315 entries

Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...

  • Best score: 22
  • Best player score: 54
  • Position: #118 / 122
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2578 / 3638
  • Number of attempts: 3
attr_aligner - 3402 entries

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

  • Best score: 19
  • Best player score: 31
  • Position: #389 / 685
  • Number of attempts: 9
quotes inside quotes - 3030 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: #754 / 1045
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1407 / 3919
  • Number of attempts: 5
Minimalist Limerick - 507 entries

Reproduce this lovely poem.

  • Best score: 31
  • Best player score: 63
  • Position: #166 / 168
  • Number of attempts: 2
replacing each line of a block selection - 2800 entries

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

  • Best score: 18
  • Best player score: 33
  • Position: #673 / 735
  • Number of attempts: 2
switch variable - 4944 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1315 / 1708
  • Number of attempts: 1
remove dupes from array - 1290 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 29
  • Position: #291 / 325
  • Number of attempts: 3
Ruby 1.9 hashes - 1172 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 18
  • Position: #332 / 386
  • Number of attempts: 1
Shebangs for all - 1777 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: 23
  • Position: #424 / 468
  • Number of attempts: 1
Change the content of a string - 1350 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #141 / 521
  • Number of attempts: 7
Whitespace, empty lines and tabs - 3009 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 33
  • Position: #524 / 667
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6033 entries

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

  • Best score: 32
  • Best player score: 76
  • Position: #1449 / 1486
  • Number of attempts: 1
Almog
Twitter:

המרת נופים בכתובות \ וזכרונות רופפים בתאריכים מקובעים \ מכל האהבות לרשום את הנישואין בלבד \ ומהילדים רק את אלו שנולדו

entered into 20 challenges

contributed 0 challenges