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

Extract argument from function - 2354 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #397 / 751
  • Number of attempts: 2
Swap assigned value - 643 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #67 / 253
  • Number of attempts: 2
Two become one - 713 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 28
  • Position: #59 / 208
  • Number of attempts: 5
attr_aligner - 3498 entries

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

  • Best score: 19
  • Best player score: 30
  • Position: #353 / 696
  • 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: 15
  • Position: #424 / 1075
  • Number of attempts: 2
Words in parens - 12918 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1353 / 3957
  • Number of attempts: 4
Assign list - 192 entries

Assign list elements to matrix

  • Best score: 30
  • Best player score: 57
  • Position: #50 / 61
  • Number of attempts: 2
Saving the hashes(#) - 2048 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 25
  • Position: #165 / 478
  • Number of attempts: 5
Vertical Limit - 2522 entries

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

  • Best score: 21
  • Best player score: 25
  • Position: #328 / 751
  • Number of attempts: 1
replacing each line of a block selection - 2987 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #366 / 774
  • Number of attempts: 2
Switch function arguments - 2117 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 13
  • Position: #379 / 657
  • Number of attempts: 2
Append semicolon after expressions - 1046 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #212 / 413
  • Number of attempts: 2
switch variable - 5061 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #752 / 1743
  • Number of attempts: 2
Make it more readable - 1982 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Position: #156 / 645
  • Number of attempts: 4
remove dupes from array - 1347 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: 18
  • Position: #99 / 334
  • Number of attempts: 6
Numbering a List - 1929 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 20
  • Position: #315 / 651
  • Number of attempts: 1
Change the content of a string - 1541 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #281 / 577
  • Number of attempts: 2
Sort and add attributes - 1418 entries

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

  • Best score: 33
  • Best player score: 37
  • Position: #441 / 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: #1096 / 3653
  • Number of attempts: 2
lastsseldon
Twitter:

entered into 19 challenges

contributed 0 challenges