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 - 33724 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: 27
  • Position: #3769 / 7442
  • Number of attempts: 8
V to the i - 4813 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1058 / 1897
  • Number of attempts: 1
Search and Replace 0 - 5004 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #1210 / 1630
  • Number of attempts: 2
That hyphen - 2595 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 13
  • Position: #510 / 701
  • Number of attempts: 6
Just the middle - 11484 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1918 / 4209
  • Number of attempts: 1
Make HTML List - 1061 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 51
  • Position: #215 / 274
  • Number of attempts: 2
Forgot to follow the naming convention... - 40 entries

Rename everything like MY_VAR_SOMETHING to MyVarSomething.

  • Best score: 32
  • Best player score: 48
  • Position: #13 / 16
  • Number of attempts: 1
Vice versa - 7945 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1135 / 2138
  • Number of attempts: 2
comments galore - 1048 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 11
  • Position: #310 / 425
  • Number of attempts: 2
Mirrored text - 177 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 23
  • Position: #70 / 71
  • Number of attempts: 2
Inner hyphens - 136 entries

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

  • Best score: 11
  • Best player score: 13
  • Position: #77 / 82
  • Number of attempts: 1
Sudoku table - 92 entries

Make this simple sudoku table look nice and legible.

  • Best score: 48
  • Best player score: 86
  • Position: #32 / 34
  • Number of attempts: 1
Scrambled numbers - 807 entries

Four is NOT 1. One is 1.

  • Best score: 18
  • Best player score: 33
  • Position: #157 / 184
  • Number of attempts: 4
Alsa configuration - 513 entries

I'm tweaking my ~/.asoundrc file!

  • Best score: 22
  • Best player score: 41
  • Position: #122 / 128
  • Number of attempts: 5
Mirror Symmetry - 822 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Position: #225 / 269
  • Number of attempts: 2
Collect List - 4305 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 22
  • Position: #1139 / 1191
  • Number of attempts: 3
camel riding - 793 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 18
  • Position: #223 / 281
  • Number of attempts: 2
Space out the alphabet - 1658 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 23
  • Position: #353 / 445
  • Number of attempts: 1
Fix the XML - 1039 entries

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

  • Best score: 18
  • Best player score: 28
  • Position: #223 / 290
  • Number of attempts: 1
I forgot quotes - 16022 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2482 / 4189
  • Number of attempts: 1
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Position: #804 / 1138
  • Number of attempts: 2
Gray area - 747 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 15
  • Position: #245 / 271
  • Number of attempts: 2
Mess in revision history - 1184 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 37
  • Position: #219 / 250
  • Number of attempts: 1
Shuffle puzzle - 346 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
  • Position: #84 / 104
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10682 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Position: #3074 / 3689
  • Number of attempts: 2
Words in parens - 12967 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #2877 / 3969
  • Number of attempts: 1
replacing each line of a block selection - 3001 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #393 / 778
  • Number of attempts: 1
Remember FizzBuzz? - 738 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 64
  • Position: #136 / 193
  • Number of attempts: 1
Reconstruct the Sentence - 1589 entries

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

  • Best score: 19
  • Best player score: 25
  • Position: #350 / 425
  • Number of attempts: 6
Simple text editing with Vim - 12994 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #2826 / 3738
  • Number of attempts: 3
aisapatino
Twitter:

entered into 30 challenges

contributed 0 challenges