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

Changing date formats - 71 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 53
  • Position: #7 / 26
  • Number of attempts: 4
Change to ascending order - 139 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 26
  • Position: #11 / 39
  • Number of attempts: 7
Swap columns and transform to CSV format - 67 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 17
  • Position: #14 / 27
  • Number of attempts: 1
Convert plain text into a markdown table - 22 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 106
  • Position: #8 / 10
  • Number of attempts: 3
Quicksort - 1962 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: #59 / 431
  • 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: 19
  • Position: #81 / 164
  • Number of attempts: 5
Tic-Tac-Toe Grid Transformation - 396 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 56
  • Best player score: 98
  • Position: #28 / 83
  • Number of attempts: 5
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: 32
  • Position: #35 / 87
  • Number of attempts: 4
Find fix point of cos - 1402 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #192 / 415
  • Number of attempts: 5
Surround the 'z' character with brackets, quotes, and print as formatted string. - 554 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #259 / 309
  • Number of attempts: 1
Paste a column after a column - 2537 entries

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

  • Best score: 14
  • Best player score: 34
  • Position: #433 / 553
  • Number of attempts: 3
Filter number combinations that don't add to 11 - 408 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: 29
  • Position: #89 / 117
  • Number of attempts: 1
Inverting Lines - 1900 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #210 / 511
  • Number of attempts: 1
Yordan Boikov
Github:

entered into 13 challenges

contributed 0 challenges