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

Replace markdown sections with numbering - 144 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 65
  • Position: #23 / 43
  • Number of attempts: 4
Fix the Scala Method - 106 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 9
  • Best player score: 29
  • Position: #32 / 39
  • Number of attempts: 2
Change class fields from snake case to camel case - 150 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #23 / 56
  • Number of attempts: 1
Reorganize Pokémon - 307 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 19
  • Position: #25 / 82
  • Number of attempts: 4
Replace csv column if it's not empty - 95 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: #33 / 39
  • Number of attempts: 3
extract struct tag in go - 42 entries

Can you extract all struct tags in the fewest keystrokes possible?

  • Best score: 29
  • Best player score: 33
  • Position: #6 / 17
  • Number of attempts: 3
Move list of uuids into a SQL query - 69 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: 72
  • Position: #23 / 29
  • Number of attempts: 2
Word completion - 185 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 23
  • Position: #19 / 51
  • Number of attempts: 3
Fix timezone format - 228 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: #4 / 76
  • Number of attempts: 7
Search different SQL column with similar where clause - 168 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: #14 / 45
  • Number of attempts: 6
Remove adjacent duplicates - 446 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 33
  • Position: #71 / 118
  • Number of attempts: 2
Rearrange array to single level - 1302 entries

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

  • Best score: 14
  • Best player score: 25
  • Position: #103 / 207
  • Number of attempts: 3
Rearrange array to one line - 604 entries

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

  • Best score: 13
  • Best player score: 22
  • Position: #95 / 145
  • Number of attempts: 2
months to html list items - 1010 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 36
  • Position: #237 / 274
  • Number of attempts: 1
Populate 3D bone names list - 629 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 37
  • Position: #131 / 162
  • Number of attempts: 2
Remove line numbers - 736 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 9
  • Best player score: 43
  • Position: #172 / 198
  • Number of attempts: 1
Surround the 'z' character with brackets, quotes, and print as formatted string. - 555 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #224 / 310
  • Number of attempts: 1
Paste a column after a column - 2537 entries

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

  • Best score: 14
  • Best player score: 43
  • Position: #466 / 553
  • Number of attempts: 1
Many duplicates - 1445 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #316 / 468
  • Number of attempts: 3

Contributed Challenges

Markdown Blog Editing - 262 entries

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

ak@developer
Github:

entered into 19 challenges

contributed 1 challenges