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 - 379 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: #65 / 126
  • Number of attempts: 2
Change class fields from snake case to camel case - 330 entries

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

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

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 25
  • Position: #180 / 247
  • Number of attempts: 1
CaN yOuR ViM dO ThAt? #1 - 303 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: #90 / 121
  • Number of attempts: 1
Move list of uuids into a SQL query - 252 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: #30 / 82
  • Number of attempts: 2
Fix timezone format - 383 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: #74 / 124
  • Number of attempts: 1
Rearrange array to one line - 897 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #67 / 207
  • Number of attempts: 2
months to html list items - 1155 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 26
  • Position: #164 / 312
  • Number of attempts: 2
Quicksort - 2113 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: #319 / 472
  • Number of attempts: 3
Paste a column after a column - 2669 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #243 / 579
  • Number of attempts: 3
Reformat symbols in list - 1658 entries

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

  • Best score: 24
  • Best player score: 40
  • Position: #279 / 357
  • Number of attempts: 1
Poorly indented Python comments - 1370 entries

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

  • Best score: 15
  • Best player score: 35
  • Position: #136 / 226
  • Number of attempts: 2
2 quick changes and a numbered list - 661 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: #72 / 157
  • Number of attempts: 5
delete swap - 1916 entries

delete all swap

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

Simple number generation

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

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

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

entered into 16 challenges

contributed 0 challenges