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

Replace word while reserving first letter case - 489 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 24
  • Position: #5 / 105
  • Number of attempts: 15
months to html list items - 826 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #11 / 222
  • Number of attempts: 12
Quicksort - 1757 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 6
  • Position: #91 / 385
  • Number of attempts: 10
EDN reformat - 1099 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #61 / 153
  • Number of attempts: 6
Pick and sort servers from mirror list - 379 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: 29
  • Position: #18 / 81
  • Number of attempts: 17
Surround the 'z' character with brackets, quotes, and print as formatted string. - 507 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #188 / 287
  • Number of attempts: 3
Paste a column after a column - 2413 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 14
  • Position: #92 / 523
  • Number of attempts: 12
HS exam question - 1523 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 47
  • Position: #19 / 404
  • Number of attempts: 22
Many duplicates - 1350 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #274 / 440
  • Number of attempts: 4
2 quick changes and a numbered list - 615 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 62
  • Position: #113 / 148
  • Number of attempts: 4
Simple, Practical, and Common - 33483 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #80 / 7384
  • Number of attempts: 11
V to the i - 4771 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Position: #56 / 1887
  • Number of attempts: 4
Extract argument from function - 2337 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 16
  • Position: #496 / 750
  • Number of attempts: 2
Lisp Condense - 449 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 13
  • Position: #22 / 157
  • Number of attempts: 5
120 Degrees - 469 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 14
  • Position: #12 / 144
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10652 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #446 / 3677
  • Number of attempts: 8
Words in parens - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #422 / 3950
  • Number of attempts: 8
remove dupes from array - 1345 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 32
  • Position: #309 / 333
  • Number of attempts: 1
Mike Rayner
Twitter:

A code monkey born in the pennines. Variety is the spice of life, I always say, so I like playing around with multiple languages, frameworks and platforms.

entered into 18 challenges

contributed 0 challenges