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

Convert list of enums to list of localization terms - 105 entries

While making my game Piloteer, I had a large list of TaskTypes and needed to convert them to an equivalent list of localization terms, to be used when translating the game's text into different languages.

  • Best score: 75
  • Best player score: 103
  • Position: #15 / 35
  • Number of attempts: 13
From brakets to parens - 933 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 38
  • Position: #119 / 216
  • Number of attempts: 1
Create json from a .env file - 1523 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 61
  • Position: #182 / 356
  • Number of attempts: 2
Nested JSON Flattener - 126 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: 72
  • Position: #18 / 29
  • Number of attempts: 1
Replace markdown sections with numbering - 303 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 35
  • Position: #15 / 80
  • Number of attempts: 16
Change class fields from snake case to camel case - 290 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #31 / 108
  • Number of attempts: 12
Replace csv column if it's not empty - 255 entries

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

  • Best score: 15
  • Best player score: 16
  • Position: #47 / 87
  • Number of attempts: 2
Markdown Blog Editing - 456 entries

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

  • Best score: 30
  • Best player score: 61
  • Position: #80 / 107
  • Number of attempts: 1
Fix timezone format - 326 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: 24
  • Position: #98 / 105
  • Number of attempts: 3
Search different SQL column with similar where clause - 328 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: 58
  • Position: #73 / 75
  • Number of attempts: 2
M S Dheeraj Murthy
Github:

entered into 10 challenges

contributed 0 challenges