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 - 33385 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: #4376 / 7364
  • Number of attempts: 2
Applying same text modification in several lines - 2845 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #363 / 840
  • Number of attempts: 3
remove lines containing the word "reader" - 3537 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #583 / 1144
  • Number of attempts: 2
Box it - 7828 entries

Create a box around a line.

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

There's something special about the input order.

  • Best score: 10
  • Best player score: 14
  • Position: #213 / 255
  • Number of attempts: 2
Build a six - 272 entries

Just enjoy building "a" floors...

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

Increment each number individually by one

  • Best score: 15
  • Best player score: 18
  • Position: #103 / 242
  • Number of attempts: 3
Collect List - 4264 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Position: #855 / 1186
  • Number of attempts: 3
Letter case trickery - 1594 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: #369 / 511
  • Number of attempts: 1
Words in parens - 12858 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #1966 / 3946
  • Number of attempts: 1
Resort and deup a CSV list - 142 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: #21 / 39
  • Number of attempts: 6
Dehamlizing - 180 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 41
  • Position: #34 / 69
  • Number of attempts: 6
Complete the circuit grid! - 84 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: 49
  • Best player score: 109
  • Position: #27 / 28
  • Number of attempts: 3
Saving the hashes(#) - 1992 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: #278 / 473
  • 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 - 2448 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #196 / 738
  • 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 - 1327 entries

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

  • Best score: 33
  • Best player score: 38
  • Position: #453 / 529
  • Number of attempts: 1
Simple text editing with Vim - 12290 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1118 / 3581
  • Number of attempts: 4

Contributed Challenges

Resort and deup a CSV list - 142 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