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 - 33420 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: #4378 / 7375
  • Number of attempts: 2
Applying same text modification in several lines - 2851 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 14
  • Position: #364 / 843
  • Number of attempts: 3
remove lines containing the word "reader" - 3555 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #587 / 1150
  • Number of attempts: 2
Box it - 7836 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #61 / 1868
  • Number of attempts: 4
Order and join - 964 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 14
  • Position: #215 / 257
  • Number of attempts: 2
Build a six - 274 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 22
  • Position: #30 / 93
  • Number of attempts: 2
Increment each number - 994 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 18
  • Position: #104 / 244
  • Number of attempts: 3
Collect List - 4266 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Position: #856 / 1187
  • Number of attempts: 3
Letter case trickery - 1597 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: 13
  • Position: #371 / 513
  • Number of attempts: 1
Words in parens - 12863 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #1966 / 3948
  • Number of attempts: 1
Resort and deup a CSV list - 145 entries

I'm always adding items to a sorted list. There has to be a better way dedup and resort the lists. There are multiple lists with varying lengths to discourage manual sorting. Also Australia's animals are weird.

  • Best score: 44
  • Best player score: 49
  • Position: #22 / 40
  • Number of attempts: 6
Dehamlizing - 183 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 41
  • Position: #34 / 70
  • Number of attempts: 6
Complete the circuit grid! - 85 entries

Continuing from the last challenge, add additional rows to the grid. Change each of the names from 'A1'...'A10' to 'B1'...'B10', 'C1'...'C10', etc, and for each new row add 0.7 to the X values in the (X Y) at the end of each line.

  • Best score: 46
  • Best player score: 109
  • Position: #28 / 29
  • Number of attempts: 3
Saving the hashes(#) - 2008 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: 28
  • Position: #280 / 476
  • Number of attempts: 6
Create an alphabet diamond - 81 entries

Here's a brain teaser to keep things interesting...

  • Best score: 40
  • Best player score: 56
  • Position: #13 / 30
  • Number of attempts: 3
Vertical Limit - 2479 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #196 / 744
  • Number of attempts: 6
replacing each line of a block selection - 2947 entries

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

  • Best score: 18
  • Best player score: 28
  • Position: #590 / 768
  • Number of attempts: 1
remove dupes from array - 1336 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: 19
  • Position: #117 / 331
  • Number of attempts: 7
HTML to Haml - 842 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 41
  • Position: #121 / 202
  • Number of attempts: 2
Sort and add attributes - 1348 entries

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

  • Best score: 33
  • Best player score: 38
  • Position: #458 / 535
  • Number of attempts: 1
Simple text editing with Vim - 12364 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1124 / 3600
  • Number of attempts: 4

Contributed Challenges

Resort and deup a CSV list - 145 entries

I'm always adding items to a sorted list. There has to be a better way dedup and resort the lists. There are multiple lists with varying lengths to discourage manual sorting. Also Australia's animals are weird.

J. Nick Terry
Twitter:

entered into 21 challenges

contributed 1 challenges