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 - 1848 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 / 405
  • Number of attempts: 9
EDN reformat - 1105 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #26 / 155
  • Number of attempts: 20
Find fix point of cos - 1308 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 / 384
  • Number of attempts: 3
HS exam question - 1560 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #40 / 412
  • Number of attempts: 9
Reformat symbols in list - 1581 entries

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

  • Best score: 24
  • Best player score: 30
  • Position: #196 / 339
  • Number of attempts: 3
Poorly indented Python comments - 1300 entries

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

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

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #115 / 587
  • Number of attempts: 8
Transpose a python matrix - 871 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 24
  • Position: #39 / 137
  • Number of attempts: 18
Python dataclasses - 1127 entries

Simple challenge to extract fields from a Python class

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

This line is too long, split it.

  • Best score: 15
  • Best player score: 22
  • Position: #471 / 634
  • Number of attempts: 1
I forgot quotes - 15954 entries

Oops.

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

entered into 11 challenges

contributed 0 challenges