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 - 33970 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: 22
  • Position: #790 / 7503
  • Number of attempts: 5
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #167 / 3898
  • Number of attempts: 7
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #822 / 4246
  • Number of attempts: 5
Combines all items - 316 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 9
  • Position: #43 / 141
  • Number of attempts: 1
replace 2nd column blanks with values in same column if blank - 248 entries

Where ,SOMELOGB and ,SOMELOGC replaces each /r carriage return if 2nd column is blank. The replace only happens if 2nd column is blank though and should replace up to the non blank row.

  • Best score: 15
  • Best player score: 17
  • Position: #57 / 84
  • Number of attempts: 1
I forgot quotes - 16179 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1316 / 4218
  • Number of attempts: 3
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #191 / 1143
  • Number of attempts: 3
The name of the game - 682 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #218 / 366
  • Number of attempts: 1
Reformat some Python - 637 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 36
  • Position: #70 / 243
  • Number of attempts: 1
Remember FizzBuzz? - 789 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 47
  • Position: #30 / 205
  • Number of attempts: 9
Simple text editing with Vim - 13526 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #826 / 3879
  • Number of attempts: 3
eban
Twitter:

#awk #sed #ruby #perl #vim #codegolf #zsh #imagemagick #jq

entered into 11 challenges

contributed 0 challenges