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

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 57
  • Position: #65 / 74
  • Number of attempts: 1
Resolve the spreadsheet - 22 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: 119
  • Best player score: 319
  • Position: #5 / 6
  • Number of attempts: 2
Define Gray code states - 30 entries

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

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

Convert hexadecimal numbers into binary format.

  • Best score: 29
  • Best player score: 45
  • Position: #14 / 17
  • Number of attempts: 1
Count words - 49 entries

Merge duplicates and count each word.

  • Best score: 39
  • Best player score: 74
  • Position: #10 / 15
  • Number of attempts: 2
Evil Numbers - 72 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: #13 / 21
  • Number of attempts: 5
Mirror image - 69 entries

Add the second eye

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

There is one special character per line

  • Best score: 30
  • Best player score: 45
  • Position: #22 / 34
  • Number of attempts: 1
Coordinate extraction - 51 entries

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

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

Translate Morse code to Text

  • Best score: 31
  • Best player score: 97
  • Position: #23 / 31
  • Number of attempts: 3
New teacher - 845 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #77 / 177
  • Number of attempts: 4
months to html list items - 962 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 31
  • Position: #202 / 257
  • Number of attempts: 2
Quicksort - 1890 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: #236 / 415
  • Number of attempts: 4
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: 50
  • Position: #68 / 85
  • Number of attempts: 5
Easier Align - 393 entries

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 124
  • Position: #33 / 95
  • Number of attempts: 7
Paste a column after a column - 2518 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #223 / 549
  • Number of attempts: 4
Filter number combinations that don't add to 11 - 401 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: #99 / 114
  • Number of attempts: 1
Reverse characters in a line - 750 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: #158 / 261
  • Number of attempts: 1
Get rid of html tags - 394 entries

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

  • Best score: 12
  • Best player score: 19
  • Position: #143 / 228
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6898 entries

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

  • Best score: 28
  • Best player score: 42
  • Position: #998 / 1689
  • Number of attempts: 9
cotarmanach
Github:

entered into 20 challenges

contributed 0 challenges