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 - 286 entries

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

  • Best score: 2
  • Best player score: 25
  • Position: #51 / 89
  • Number of attempts: 2
Change class fields from snake case to camel case - 276 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #7 / 103
  • Number of attempts: 1
Reorganize Pokémon - 691 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 25
  • Position: #146 / 190
  • Number of attempts: 1
CaN yOuR ViM dO ThAt? #1 - 236 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: #74 / 91
  • Number of attempts: 1
Move list of uuids into a SQL query - 196 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: #27 / 66
  • Number of attempts: 2
Fix timezone format - 318 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: #66 / 101
  • Number of attempts: 1
Rearrange array to one line - 758 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #55 / 182
  • Number of attempts: 2
months to html list items - 1108 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 26
  • Position: #158 / 300
  • Number of attempts: 2
Quicksort - 2058 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: #313 / 457
  • Number of attempts: 3
Paste a column after a column - 2632 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #239 / 570
  • Number of attempts: 3
Reformat symbols in list - 1635 entries

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

  • Best score: 24
  • Best player score: 40
  • Position: #276 / 352
  • Number of attempts: 1
Poorly indented Python comments - 1328 entries

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

  • Best score: 15
  • Best player score: 35
  • Position: #133 / 223
  • Number of attempts: 2
2 quick changes and a numbered list - 648 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: #71 / 155
  • Number of attempts: 5
delete swap - 1818 entries

delete all swap

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

Simple number generation

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

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

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

entered into 16 challenges

contributed 0 challenges