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

Tic-Tac-Toe Grid Transformation - 326 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 56
  • Best player score: 101
  • Position: #30 / 79
  • Number of attempts: 1
Find fix point of cos - 1169 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #71 / 355
  • Number of attempts: 2
Filter number combinations that don't add to 11 - 379 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: 31
  • Position: #94 / 112
  • Number of attempts: 4
Poorly indented Python comments - 1263 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 34
  • Position: #124 / 211
  • Number of attempts: 3
Many duplicates - 1308 entries

Quick and easy

  • Best score: 7
  • Best player score: 9
  • Position: #302 / 429
  • Number of attempts: 3
Simple text editing with Vim - 12398 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1929 / 3607
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6688 entries

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

  • Best score: 32
  • Best player score: 45
  • Position: #1134 / 1640
  • Number of attempts: 2
Gino Fazari
Twitter2:

Developer + Problem Solver

entered into 7 challenges

contributed 0 challenges