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

Search and Replace 0 - 5159 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #256 / 1674
  • Number of attempts: 3
Just the middle - 11616 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #119 / 4255
  • Number of attempts: 2
Create Leading Zeros - 275 entries

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

  • Best score: 23
  • Best player score: 24
  • Position: #21 / 88
  • Number of attempts: 3
I forgot quotes - 16237 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2453 / 4224
  • Number of attempts: 3
attr_aligner - 3566 entries

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

  • Best score: 19
  • Best player score: 21
  • Position: #200 / 710
  • Number of attempts: 4
Ninjas Leaderboard - 114 entries

The two lines in "Start file" has an obfuscated email address. Second line give an index (from 1 to 30) to the chars list of the first line, for example, the first char of email (n) is in position 25, second char (i) is in position 19 and s.o.

  • Best score: 25
  • Best player score: 31
  • Position: #12 / 45
  • Number of attempts: 3
Letter case trickery - 1686 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 10
  • Position: #66 / 525
  • Number of attempts: 2
quotes inside quotes - 3202 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: 14
  • Position: #60 / 1093
  • Number of attempts: 3
Words in parens - 13053 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #143 / 3991
  • Number of attempts: 4
Pairs of numbers - 387 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: 38
  • Position: #79 / 138
  • Number of attempts: 1
Delete unwanted lines - 450 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #93 / 236
  • Number of attempts: 2
Vertical Limit - 2637 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #226 / 778
  • Number of attempts: 5
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #778 / 1764
  • Number of attempts: 2
Make it more readable - 2039 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 13
  • Position: #44 / 658
  • Number of attempts: 5
Numbering a List - 1969 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 19
  • Position: #255 / 661
  • Number of attempts: 3
Simple text editing with Vim - 13626 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #198 / 3902
  • Number of attempts: 4
Tzipan
Twitter:

entered into 16 challenges

contributed 0 challenges