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

Letterbox - 55 entries

Make a box!

  • Best score: 35
  • Best player score: 49
  • Number of attempts: 2
Swap values inside brackets - 1187 entries

Easy challenge.

  • Best score: 2
  • Best player score: 15
  • Number of attempts: 1
Flip the bit - 51 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 10
  • Number of attempts: 1
Every other line - 1937 entries

AaAaAaA

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 1
Build a six - 126 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 2
Simple format (2) - 170 entries

try again!

  • Best score: 23
  • Best player score: 24
  • Number of attempts: 5
comment and uncomment code inline - 721 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: 10
  • Number of attempts: 1
Box it - 619 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 3
Increment each number - 260 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 18
  • Number of attempts: 4
One number per line - 11390 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 3
simple format (3) - 37 entries

reverse two column values!

  • Best score: 34
  • Best player score: 47
  • Number of attempts: 1
Roger Stoltz
Twitter:

entered into 11 challenges

contributed 0 challenges