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 - 1737 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: #176 / 290
  • Number of attempts: 1
Rearrange array to one line - 810 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #55 / 191
  • Number of attempts: 1
months to html list items - 1130 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 37
  • Position: #270 / 306
  • Number of attempts: 1
Find fix point of cos - 1468 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 / 431
  • Number of attempts: 2
delete swap - 1834 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #362 / 570
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1294 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: #217 / 277
  • Number of attempts: 1
Com(m)a Trouble - 3968 entries

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

  • Best score: 12
  • Best player score: 19
  • Position: #657 / 901
  • Number of attempts: 2
Simple text editing with Vim - 13421 entries

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

  • Best score: 13
  • Best player score: 27
  • Position: #3399 / 3847
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7513 entries

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

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

entered into 9 challenges

contributed 0 challenges