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 - 1596 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 71
  • Position: #211 / 418
  • Number of attempts: 2
Many duplicates - 1459 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #238 / 476
  • Number of attempts: 5
delete swap - 1809 entries

delete all swap

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

Simple challenge for frequent action while programming.

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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 45
  • Position: #195 / 326
  • Number of attempts: 6
comment and uncomment code inline - 1151 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: #319 / 328
  • Number of attempts: 2
MojoLake
Twitter2:

entered into 6 challenges

contributed 0 challenges