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

Filter number combinations that don't add to 11 - 341 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 29
  • Position: #72 / 102
  • Number of attempts: 2
Tabbed Table to Python Array - 602 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 53
  • Position: #27 / 157
  • Number of attempts: 7
HS exam question - 1410 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 56
  • Position: #76 / 380
  • Number of attempts: 7
Reformat symbols in list - 1390 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 24
  • Position: #30 / 308
  • Number of attempts: 9
delete swap - 1440 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #182 / 457
  • Number of attempts: 5
Wrap the text of an email message to 79 characters - 671 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #280 / 382
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 6498 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 46
  • Position: #1166 / 1598
  • Number of attempts: 4
test-and-sun
Twitter:

entered into 7 challenges

contributed 0 challenges