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 - 228 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: #11 / 57
  • Number of attempts: 8
Changing date formats - 271 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 85
  • Position: #53 / 90
  • Number of attempts: 2
YAML to dotenv - 523 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 23
  • Position: #55 / 126
  • Number of attempts: 6
Change to ascending order - 257 entries

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

  • Best score: 17
  • Best player score: 42
  • Position: #26 / 69
  • Number of attempts: 7
Swap columns and transform to CSV format - 222 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #24 / 81
  • Number of attempts: 2
Generate an entry for each month - 175 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: #14 / 52
  • Number of attempts: 6
Fix the git merge conflicts - 135 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 42
  • Position: #7 / 44
  • Number of attempts: 12
Nested JSON Flattener - 38 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: #13 / 16
  • Number of attempts: 6
Replace markdown sections with numbering - 179 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 45
  • Position: #14 / 54
  • Number of attempts: 7
Markdown Blog Editing - 303 entries

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

  • Best score: 30
  • Best player score: 52
  • Position: #43 / 71
  • Number of attempts: 5
Word completion - 202 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 96
  • Position: #35 / 57
  • Number of attempts: 4
Fix timezone format - 253 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: #42 / 85
  • Number of attempts: 5
Search different SQL column with similar where clause - 220 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: #15 / 54
  • Number of attempts: 4
Remove adjacent duplicates - 531 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 21
  • Position: #30 / 137
  • Number of attempts: 6
Move to corresponding lines - 251 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 18
  • Position: #9 / 57
  • Number of attempts: 11
Rearrange array to single level - 1396 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: #61 / 229
  • Number of attempts: 4
Rearrange array to one line - 667 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #54 / 161
  • Number of attempts: 4
Copy punctuation - 521 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: #46 / 133
  • Number of attempts: 3
Replace word while reserving first letter case - 620 entries

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

  • Best score: 24
  • Best player score: 54
  • Position: #105 / 120
  • Number of attempts: 1
Quicksort - 2003 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 / 441
  • Number of attempts: 7
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: 18
  • Position: #30 / 164
  • Number of attempts: 13
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: 71
  • Position: #22 / 83
  • Number of attempts: 13
MartnRamtin
Github:

entered into 22 challenges

contributed 0 challenges