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

Sort and Tag - 685 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 36
  • Best player score: 40
  • Position: #25 / 145
  • Number of attempts: 8
Changing date formats - 710 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 85
  • Position: #108 / 197
  • Number of attempts: 2
YAML to dotenv - 1542 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 23
  • Position: #142 / 316
  • Number of attempts: 6
Change to ascending order - 500 entries

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

  • Best score: 17
  • Best player score: 42
  • Position: #47 / 125
  • Number of attempts: 7
Swap columns and transform to CSV format - 447 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #26 / 162
  • Number of attempts: 2
Generate an entry for each month - 372 entries

The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years

  • Best score: 27
  • Best player score: 36
  • Position: #26 / 92
  • Number of attempts: 6
Fix the git merge conflicts - 332 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 42
  • Position: #13 / 98
  • Number of attempts: 12
Nested JSON Flattener - 132 entries

Transform a deeply nested JSON structure into a flattened key-value format where each path is represented by dot notation

  • Best score: 44
  • Best player score: 141
  • Position: #25 / 30
  • Number of attempts: 6
Replace markdown sections with numbering - 309 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 45
  • Position: #23 / 85
  • Number of attempts: 7
Markdown Blog Editing - 467 entries

Convert the given link text in start file to a markdown link list.

  • Best score: 30
  • Best player score: 52
  • Position: #70 / 108
  • Number of attempts: 5
Word completion - 284 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 96
  • Position: #46 / 76
  • Number of attempts: 4
Fix timezone format - 330 entries

Add the missing T and Z in the datetime field. There should be a T instead of the space, and a Z at the end of the datetime. `2024-08-31 18:32:00;` -> `2024-08-31T18:32:00Z;`

  • Best score: 15
  • Best player score: 17
  • Position: #51 / 107
  • Number of attempts: 5
Search different SQL column with similar where clause - 336 entries

Replace a column in the where clause and convert all numbers from text to numeric, by replacing the leading 0 with the code 359.

  • Best score: 22
  • Best player score: 23
  • Position: #20 / 79
  • Number of attempts: 4
Remove adjacent duplicates - 692 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 21
  • Position: #43 / 173
  • Number of attempts: 6
Move to corresponding lines - 320 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 18
  • Position: #12 / 72
  • Number of attempts: 11
Rearrange array to single level - 1791 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 19
  • Position: #75 / 299
  • Number of attempts: 4
Rearrange array to one line - 840 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 18
  • Position: #71 / 197
  • Number of attempts: 4
Copy punctuation - 715 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 30
  • Position: #57 / 173
  • Number of attempts: 3
Replace word while reserving first letter case - 664 entries

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

  • Best score: 24
  • Best player score: 54
  • Position: #111 / 126
  • Number of attempts: 1
Quicksort - 2096 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: #19 / 466
  • Number of attempts: 7
EDN reformat - 1209 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #31 / 170
  • Number of attempts: 13
Tic-Tac-Toe Grid Transformation - 449 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: 71
  • Position: #25 / 87
  • Number of attempts: 13
MartnRamtin
Github:

entered into 22 challenges

contributed 0 challenges