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

HS exam question - 1539 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 71
  • Position: #206 / 410
  • Number of attempts: 2
Many duplicates - 1420 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #236 / 458
  • Number of attempts: 5
delete swap - 1754 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #255 / 542
  • Number of attempts: 1
Making 3 line function a one liner. - 324 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #153 / 201
  • Number of attempts: 1
Modernise code - 1386 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 45
  • Position: #189 / 318
  • Number of attempts: 6
comment and uncomment code inline - 1114 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: 25
  • Position: #311 / 320
  • Number of attempts: 2
MojoLake
Twitter2:

entered into 6 challenges

contributed 0 challenges