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

Pick and sort servers from mirror list - 412 entries

Retrieve the primary server for each country from a mirror list file and organize them alphabetically by country name. Given a mirror list file containing server information for various countries, the objective is to extract the primary server from each country and then arrange these servers in alphabetical order based on the respective country names.

  • Best score: 28
  • Best player score: 80
  • Position: #77 / 85
  • Number of attempts: 1
Tabbed Table to Python Array - 721 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: 85
  • Position: #158 / 178
  • Number of attempts: 2
HS exam question - 1577 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 113
  • Position: #361 / 415
  • Number of attempts: 4
Sort and add attributes - 1424 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 42
  • Position: #528 / 553
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3589 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 40
  • Position: #714 / 775
  • Number of attempts: 1
Flodder-challenge - 1224 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 45
  • Position: #277 / 328
  • Number of attempts: 2
Simple text editing with Vim - 12693 entries

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

  • Best score: 13
  • Best player score: 25
  • Position: #3134 / 3668
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6884 entries

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

  • Best score: 28
  • Best player score: 57
  • Position: #1522 / 1686
  • Number of attempts: 1
Do Trong Thanh
Twitter2:

entered into 8 challenges

contributed 0 challenges