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

Markdown Blog Editing - 316 entries

Convert the given link text in start file to a markdown link list.

  • Best score: 30
  • Best player score: 45
  • Position: #38 / 72
  • Number of attempts: 9
Rearrange array to single level - 1425 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 14
  • Position: #10 / 233
  • Number of attempts: 32
Rearrange array to one line - 680 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 13
  • Position: #17 / 163
  • Number of attempts: 13
New teacher - 1197 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 22
  • Position: #59 / 251
  • Number of attempts: 22
months to html list items - 1064 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #32 / 289
  • Number of attempts: 17
Many duplicates - 1451 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #303 / 471
  • Number of attempts: 8
2 quick changes and a numbered list - 647 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 74
  • Position: #129 / 154
  • Number of attempts: 4
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #350 / 557
  • Number of attempts: 8
Add semicolons - 10887 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #766 / 3074
  • Number of attempts: 13
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: 9
  • Position: #161 / 324
  • Number of attempts: 14
camel riding - 793 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 15
  • Position: #77 / 281
  • Number of attempts: 13
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Position: #436 / 1138
  • Number of attempts: 9
ARK
Github:

entered into 12 challenges

contributed 0 challenges