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

Reordering properties - 411 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: 39
  • Position: #20 / 107
  • Number of attempts: 5
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: 59
  • Position: #23 / 57
  • Number of attempts: 4
Changing date formats - 269 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 57
  • Position: #29 / 89
  • Number of attempts: 4
The Fibonacci Spacer - 86 entries

Split the words, remove punctuation and add spaces before each line following the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89)

  • Best score: 25
  • Best player score: 32
  • Position: #5 / 30
  • Number of attempts: 5
Replace markdown sections with numbering - 176 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 35
  • Position: #5 / 53
  • Number of attempts: 4
Change class fields from camel case to snake case - 374 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 18
  • Position: #8 / 92
  • Number of attempts: 5
Change class fields from snake case to camel case - 187 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #45 / 72
  • Number of attempts: 1
Replace csv column if it's not empty - 145 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #1 / 53
  • Number of attempts: 3
Convert plain text into a markdown table - 24 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 103
  • Position: #7 / 11
  • Number of attempts: 1
Move list of uuids into a SQL query - 90 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: 63
  • Position: #8 / 39
  • Number of attempts: 1
Markdown Blog Editing - 298 entries

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

  • Best score: 30
  • Best player score: 38
  • Position: #22 / 70
  • Number of attempts: 8
Word completion - 198 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 52
  • Position: #28 / 56
  • Number of attempts: 3
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: 15
  • Position: #12 / 85
  • Number of attempts: 6
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: 22
  • Position: #5 / 54
  • Number of attempts: 8
Remove adjacent duplicates - 531 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 35
  • Position: #88 / 137
  • Number of attempts: 3
Move to corresponding lines - 251 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 20
  • Position: #20 / 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: 14
  • Position: #6 / 229
  • Number of attempts: 16
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: 14
  • Position: #29 / 161
  • Number of attempts: 8
Changing around text with citations - 329 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 128
  • Position: #90 / 93
  • Number of attempts: 2
MatFriend
Github:

entered into 19 challenges

contributed 0 challenges