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 - 620 entries

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

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

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #11 / 284
  • Number of attempts: 12
Quicksort - 2002 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 / 440
  • Number of attempts: 10
EDN reformat - 1158 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #62 / 164
  • Number of attempts: 6
Pick and sort servers from mirror list - 431 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: #19 / 87
  • Number of attempts: 17
Surround the 'z' character with brackets, quotes, and print as formatted string. - 561 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #188 / 314
  • Number of attempts: 3
Paste a column after a column - 2555 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 / 557
  • Number of attempts: 12
HS exam question - 1589 entries

Convert the data to a python dictionary

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

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #277 / 470
  • Number of attempts: 4
2 quick changes and a numbered list - 647 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: #116 / 154
  • Number of attempts: 4
Simple, Practical, and Common - 33724 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 / 7442
  • Number of attempts: 11
V to the i - 4813 entries

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

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

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

  • Best score: 13
  • Best player score: 16
  • Position: #498 / 755
  • Number of attempts: 2
Lisp Condense - 460 entries

Reduce 4 cons selection operations down to one function call.

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

Rotate that triangle.

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

A HAPPY NEW YEAR 2014 !

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #429 / 3969
  • Number of attempts: 8
remove dupes from array - 1358 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: #311 / 336
  • 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