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

remove lines containing the word "reader" - 3604 entries

easy stuff

  • Best score: 9
  • Best player score: 11
  • Position: #896 / 1169
  • Number of attempts: 3
Com(m)a Trouble - 3880 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 17
  • Position: #549 / 878
  • Number of attempts: 2
That hyphen - 2595 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 15
  • Position: #615 / 701
  • Number of attempts: 2
comment and uncomment code inline - 1130 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 12
  • Position: #269 / 324
  • Number of attempts: 2
ninja substitution - 1420 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 16
  • Position: #156 / 267
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10688 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2388 / 3691
  • Number of attempts: 3
Henry Wang (theKidOfArcrania)
Twitter:

Student by day, pwner at night (tho sometimes in the day as well) | teams: @DefConUA

entered into 6 challenges

contributed 0 challenges