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

Create json from a .env file - 578 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 46
  • Position: #38 / 135
  • Number of attempts: 3
Reordering properties - 735 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 37
  • Position: #14 / 182
  • Number of attempts: 13
Changing date formats - 412 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 53
  • Position: #30 / 129
  • Number of attempts: 4
YAML to dotenv - 877 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #27 / 196
  • Number of attempts: 6
Change to ascending order - 340 entries

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

  • Best score: 17
  • Best player score: 26
  • Position: #18 / 89
  • Number of attempts: 7
Swap columns and transform to CSV format - 295 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #9 / 110
  • Number of attempts: 2
Change class fields from snake case to camel case - 230 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 14
  • Position: #62 / 88
  • Number of attempts: 1
Reorganize Pokémon - 579 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 18
  • Position: #25 / 157
  • Number of attempts: 4
Replace csv column if it's not empty - 185 entries

Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched

  • Best score: 15
  • Best player score: 19
  • Position: #54 / 64
  • Number of attempts: 2
Convert plain text into a markdown table - 27 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 106
  • Position: #9 / 13
  • Number of attempts: 3
CaN yOuR ViM dO ThAt? #1 - 176 entries

Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091

  • Best score: 41
  • Best player score: 45
  • Position: #32 / 70
  • Number of attempts: 2
Append leading hyphen count to each line - 81 entries

Append the number of leading hyphens to the end of each line.

  • Best score: 23
  • Best player score: 25
  • Position: #15 / 26
  • Number of attempts: 2
Move list of uuids into a SQL query - 154 entries

Take the list of UUIDs and use them as a filter in the where statement of a SQL query

  • Best score: 57
  • Best player score: 62
  • Position: #12 / 52
  • Number of attempts: 1
Deleting text - 277 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 32
  • Position: #9 / 91
  • Number of attempts: 1
New teacher - 1357 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 27
  • Position: #172 / 282
  • Number of attempts: 2
Quicksort - 2035 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 / 450
  • Number of attempts: 10
EDN reformat - 1175 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #82 / 167
  • Number of attempts: 5
Tic-Tac-Toe Grid Transformation - 413 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: #29 / 85
  • Number of attempts: 5
Pick and sort servers from mirror list - 441 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: #36 / 88
  • Number of attempts: 4
Find fix point of cos - 1426 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: #194 / 422
  • Number of attempts: 5
Surround the 'z' character with brackets, quotes, and print as formatted string. - 567 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #267 / 318
  • Number of attempts: 1
Paste a column after a column - 2604 entries

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

  • Best score: 14
  • Best player score: 34
  • Position: #445 / 565
  • Number of attempts: 3
Filter number combinations that don't add to 11 - 414 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: #90 / 118
  • Number of attempts: 1
Inverting Lines - 1923 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #210 / 516
  • Number of attempts: 1
Simple text editing with Vim - 13092 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #2058 / 3765
  • Number of attempts: 4
Yordan Boikov
Github:

entered into 25 challenges

contributed 0 challenges