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 - 1657 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: #168 / 275
  • Number of attempts: 1
Rearrange array to one line - 788 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #53 / 185
  • Number of attempts: 1
months to html list items - 1119 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 37
  • Position: #267 / 303
  • Number of attempts: 1
Find fix point of cos - 1458 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: #202 / 430
  • Number of attempts: 2
delete swap - 1821 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #362 / 568
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1281 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: #215 / 275
  • Number of attempts: 1
Com(m)a Trouble - 3947 entries

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

  • Best score: 12
  • Best player score: 19
  • Position: #653 / 895
  • Number of attempts: 2
Simple text editing with Vim - 13276 entries

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

  • Best score: 13
  • Best player score: 27
  • Position: #3370 / 3812
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7415 entries

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

  • Best score: 7
  • Best player score: 37
  • Position: #602 / 1825
  • Number of attempts: 2
Ben Gadbois
Github:

entered into 9 challenges

contributed 0 challenges