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

Deleting text - 116 entries

Delete everything except some specific numbers.

  • Best score: 28
  • Best player score: 57
  • Position: #34 / 40
  • Number of attempts: 1
Resolve the spreadsheet - 12 entries

Replace the formulas in column C with the resulting values. Divisions by zero result in NaN. Operations with NaN also result in NaN.

  • Best score: 175
  • Best player score: 319
  • Position: #3 / 4
  • Number of attempts: 2
Define Gray code states - 20 entries

List the states using Gray code and assign Gray code values to each state.

  • Best score: 56
  • Best player score: 112
  • Position: #7 / 8
  • Number of attempts: 2
Hex to binary - 61 entries

Convert hexadecimal numbers into binary format.

  • Best score: 30
  • Best player score: 45
  • Position: #13 / 15
  • Number of attempts: 1
Count words - 36 entries

Merge duplicates and count each word.

  • Best score: 39
  • Best player score: 74
  • Position: #8 / 11
  • Number of attempts: 2
Evil Numbers - 52 entries

Print the first 100 evil numbers https://oeis.org/A001969. This is an advert for code.golf https://code.golf/evil-numbers#viml

  • Best score: 25
  • Best player score: 70
  • Position: #11 / 18
  • Number of attempts: 5
Mirror image - 43 entries

Add the second eye

  • Best score: 15
  • Best player score: 48
  • Position: #20 / 22
  • Number of attempts: 4
Find anomalies - 103 entries

There is one special character per line

  • Best score: 30
  • Best player score: 45
  • Position: #21 / 28
  • Number of attempts: 1
Coordinate extraction - 47 entries

Get the coordinates of all "M"s from the Vim logo

  • Best score: 43
  • Best player score: 97
  • Position: #13 / 14
  • Number of attempts: 2
Morse - 102 entries

Translate Morse code to Text

  • Best score: 31
  • Best player score: 97
  • Position: #19 / 25
  • Number of attempts: 3
New teacher - 619 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #59 / 135
  • Number of attempts: 4
months to html list items - 825 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 31
  • Position: #171 / 221
  • Number of attempts: 2
Quicksort - 1755 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: 24
  • Position: #229 / 384
  • Number of attempts: 4
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: 50
  • Position: #65 / 81
  • Number of attempts: 5
Easier Align - 358 entries

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 124
  • Position: #32 / 92
  • Number of attempts: 7
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: 17
  • Position: #217 / 523
  • Number of attempts: 4
Filter number combinations that don't add to 11 - 379 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 32
  • Position: #97 / 112
  • Number of attempts: 1
Reverse characters in a line - 732 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 16
  • Position: #156 / 257
  • Number of attempts: 1
Get rid of html tags - 378 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 19
  • Position: #138 / 222
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6749 entries

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

  • Best score: 31
  • Best player score: 42
  • Position: #987 / 1652
  • Number of attempts: 9
cotarmanach
Github:

entered into 20 challenges

contributed 0 challenges