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

Fix the Scala Method - 162 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: 25
  • Position: #31 / 54
  • Number of attempts: 2
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: 13
  • Position: #7 / 72
  • Number of attempts: 1
Reorganize Pokémon - 465 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 25
  • Position: #100 / 127
  • Number of attempts: 1
CaN yOuR ViM dO ThAt? #1 - 146 entries

Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091

  • Best score: 41
  • Best player score: 48
  • Position: #51 / 59
  • 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: 65
  • Position: #16 / 39
  • Number of attempts: 2
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: 19
  • Position: #57 / 85
  • Number of attempts: 1
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: 16
  • Position: #47 / 161
  • Number of attempts: 2
months to html list items - 1042 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 26
  • Position: #150 / 284
  • Number of attempts: 2
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: 26
  • Position: #300 / 441
  • Number of attempts: 3
Paste a column after a column - 2555 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #232 / 557
  • Number of attempts: 3
Reformat symbols in list - 1625 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 40
  • Position: #274 / 349
  • Number of attempts: 1
Poorly indented Python comments - 1316 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 35
  • Position: #132 / 222
  • Number of attempts: 2
2 quick changes and a numbered list - 647 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 43
  • Position: #70 / 154
  • Number of attempts: 5
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #383 / 557
  • Number of attempts: 5
hello-world-vimgolf - 2501 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #343 / 709
  • Number of attempts: 4
Inverting Lines - 1907 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 11
  • Position: #272 / 512
  • Number of attempts: 1
daniilsvirin
Github:

entered into 16 challenges

contributed 0 challenges