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 - 236 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: #44 / 75
  • Number of attempts: 2
Change class fields from snake case to camel case - 246 entries

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

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

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 25
  • Position: #134 / 170
  • Number of attempts: 1
CaN yOuR ViM dO ThAt? #1 - 186 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: #63 / 74
  • Number of attempts: 1
Move list of uuids into a SQL query - 157 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: #22 / 54
  • Number of attempts: 2
Fix timezone format - 298 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: #63 / 96
  • Number of attempts: 1
Rearrange array to one line - 719 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #51 / 174
  • Number of attempts: 2
months to html list items - 1088 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 26
  • Position: #156 / 295
  • Number of attempts: 2
Quicksort - 2038 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: #310 / 452
  • Number of attempts: 3
Paste a column after a column - 2610 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #236 / 566
  • 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 - 1809 entries

delete all swap

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

Simple number generation

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

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

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

entered into 16 challenges

contributed 0 challenges