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 - 1623 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 / 359
  • Number of attempts: 9
EDN reformat - 1069 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #25 / 150
  • Number of attempts: 20
Find fix point of cos - 1155 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 / 348
  • Number of attempts: 3
HS exam question - 1514 entries

Convert the data to a python dictionary

  • Best score: 12
  • Best player score: 48
  • Position: #40 / 399
  • Number of attempts: 9
Reformat symbols in list - 1476 entries

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

  • Best score: 24
  • Best player score: 30
  • Position: #190 / 326
  • Number of attempts: 3
Poorly indented Python comments - 1217 entries

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

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

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #112 / 550
  • Number of attempts: 8
Transpose a python matrix - 847 entries

Rotate the matrix in 90 degrees.

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

Simple challenge to extract fields from a Python class

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

This line is too long, split it.

  • Best score: 15
  • Best player score: 22
  • Position: #470 / 630
  • Number of attempts: 1
I forgot quotes - 15932 entries

Oops.

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

entered into 11 challenges

contributed 0 challenges