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

Quicksort - 515 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: 6
  • Position: #21 / 139
  • Number of attempts: 9
EDN reformat - 347 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #21 / 68
  • Number of attempts: 20
Find fix point of cos - 798 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 14
  • Position: #47 / 232
  • Number of attempts: 3
HS exam question - 1345 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #34 / 365
  • Number of attempts: 9
Reformat symbols in list - 1321 entries

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

  • Best score: 24
  • Best player score: 30
  • Position: #171 / 294
  • Number of attempts: 3
Poorly indented Python comments - 1079 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #43 / 190
  • Number of attempts: 16
Fix the shell script! - 1968 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #106 / 472
  • Number of attempts: 8
Transpose a python matrix - 784 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 24
  • Position: #38 / 129
  • Number of attempts: 18
Python dataclasses - 881 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #61 / 229
  • Number of attempts: 13
Split line with dots - 2117 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 22
  • Position: #468 / 626
  • Number of attempts: 1
I forgot quotes - 15890 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1132 / 4152
  • Number of attempts: 2
bpking1
Github:

entered into 11 challenges

contributed 0 challenges