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 - 32910 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 / 7271
  • Number of attempts: 5
One number per line - 18378 entries

Just give me the numbers.

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #822 / 4113
  • Number of attempts: 5
Combines all items - 269 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 / 123
  • Number of attempts: 1
replace 2nd column blanks with values in same column if blank - 210 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: #48 / 73
  • Number of attempts: 1
I forgot quotes - 15740 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1287 / 4115
  • Number of attempts: 3
-a-b-c- - 3118 entries

Put hyphens everywhere.

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

End up with the name of the game.

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

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 36
  • Position: #62 / 221
  • Number of attempts: 1
Remember FizzBuzz? - 589 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 47
  • Position: #17 / 166
  • Number of attempts: 9
Simple text editing with Vim - 11637 entries

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

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

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

entered into 11 challenges

contributed 0 challenges