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

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: 30
  • Position: #143 / 233
  • Number of attempts: 1
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: 16
  • Position: #44 / 163
  • Number of attempts: 1
months to html list items - 1064 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 37
  • Position: #255 / 289
  • Number of attempts: 1
Find fix point of cos - 1408 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: #198 / 418
  • Number of attempts: 2
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #362 / 557
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1253 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 55
  • Position: #211 / 271
  • Number of attempts: 1
Com(m)a Trouble - 3880 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 19
  • Position: #640 / 878
  • Number of attempts: 2
Simple text editing with Vim - 13013 entries

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

  • Best score: 13
  • Best player score: 27
  • Position: #3317 / 3744
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7173 entries

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

  • Best score: 28
  • Best player score: 37
  • Position: #589 / 1761
  • Number of attempts: 2
Ben Gadbois
Github:

entered into 9 challenges

contributed 0 challenges