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 - 33621 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 / 7422
  • Number of attempts: 5
One number per line - 18732 entries

Just give me the numbers.

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #822 / 4199
  • Number of attempts: 5
Combines all items - 313 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 / 140
  • Number of attempts: 1
replace 2nd column blanks with values in same column if blank - 242 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: #56 / 83
  • Number of attempts: 1
I forgot quotes - 15990 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1306 / 4182
  • Number of attempts: 3
-a-b-c- - 3216 entries

Put hyphens everywhere.

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

End up with the name of the game.

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

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 36
  • Position: #67 / 236
  • Number of attempts: 1
Remember FizzBuzz? - 725 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 47
  • Position: #28 / 190
  • Number of attempts: 9
Simple text editing with Vim - 12822 entries

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

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

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

entered into 11 challenges

contributed 0 challenges