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

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

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

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #11 / 154
  • Number of attempts: 12
Quicksort - 1558 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 / 343
  • Number of attempts: 10
EDN reformat - 1032 entries

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

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

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

  • Best score: 17
  • Best player score: 17
  • Position: #188 / 271
  • Number of attempts: 3
Paste a column after a column - 2243 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 / 487
  • Number of attempts: 12
HS exam question - 1504 entries

Convert the data to a python dictionary

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

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #269 / 412
  • Number of attempts: 4
2 quick changes and a numbered list - 599 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: #111 / 145
  • Number of attempts: 4
Simple, Practical, and Common - 33385 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 / 7364
  • Number of attempts: 11
V to the i - 4751 entries

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

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

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

  • Best score: 13
  • Best player score: 16
  • Position: #492 / 744
  • Number of attempts: 2
Lisp Condense - 438 entries

Reduce 4 cons selection operations down to one function call.

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

Rotate that triangle.

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

A HAPPY NEW YEAR 2014 !

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #421 / 3946
  • Number of attempts: 8
remove dupes from array - 1336 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: #307 / 331
  • 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