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

Rural Post - 3788 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 27
  • Position: #817 / 937
  • Number of attempts: 2
Simple, Practical, and Common - 32765 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: 30
  • Position: #5133 / 7241
  • Number of attempts: 9
One number per line - 18294 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #2915 / 3770
  • Number of attempts: 2
Applying same text modification in several lines - 2710 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 14
  • Position: #446 / 806
  • Number of attempts: 4
Add semicolons - 10467 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #1980 / 2966
  • Number of attempts: 7
Box it - 7657 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 70
  • Position: #1782 / 1829
  • Number of attempts: 1
comment and uncomment code inline - 976 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: #242 / 291
  • Number of attempts: 5
Jeremiah Smith
Twitter:

I don't tweet, I'm not a bird

entered into 7 challenges

contributed 0 challenges