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

Remember FizzBuzz? - 537 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 64
  • Number of attempts: 1
Make HTML List - 911 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 51
  • Number of attempts: 2
Alsa configuration - 471 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 41
  • Number of attempts: 5
Mess in revision history - 995 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 37
  • Number of attempts: 1
Gray area - 650 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 2
Scrambled numbers - 743 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 33
  • Number of attempts: 4
Space out the alphabet - 1401 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 23
  • Number of attempts: 1
Mirror Symmetry - 710 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Number of attempts: 2
V to the i - 4054 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Just the middle - 9542 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Words in parens - 11272 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 1
-a-b-c- - 2670 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 9657 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 2
Search and Replace 0 - 4187 entries

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

  • Best score: 12
  • Best player score: 16
  • Number of attempts: 2
comments galore - 910 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 2
Inner hyphens - 114 entries

Yet another hyphen challenge. Adding 5 hyphens to a file shouldn't be too hard.

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 1
Forgot to follow the naming convention... - 19 entries

Rename everything like MY_VAR_SOMETHING to MyVarSomething.

  • Best score: 32
  • Best player score: 48
  • Number of attempts: 1
I forgot quotes - 12412 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 1
Reconstruct the Sentence - 1028 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 20
  • Best player score: 25
  • Number of attempts: 6
Vice versa - 6132 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Number of attempts: 2
camel riding - 697 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 18
  • Number of attempts: 2
Simple text editing with Vim - 10599 entries

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

  • Best score: 13
  • Best player score: 20
  • Number of attempts: 3
Sudoku table - 56 entries

Make this simple sudoku table look nice and legible.

  • Best score: 48
  • Best player score: 86
  • Number of attempts: 1
replacing each line of a block selection - 2569 entries

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

  • Best score: 18
  • Best player score: 21
  • Number of attempts: 1
Collect List - 3578 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 22
  • Number of attempts: 3
Fix the XML - 868 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 28
  • Number of attempts: 1
Shuffle puzzle - 289 entries

Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 1
Simple, Practical, and Common - 26223 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: 14
  • Best player score: 27
  • Number of attempts: 8
That hyphen - 2236 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 13
  • Number of attempts: 6
Mirrored text - 153 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 23
  • Number of attempts: 2
aisapatino
Twitter:

entered into 30 challenges

contributed 0 challenges