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 - 2095 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: #65 / 465
  • Number of attempts: 11
Find fix point of cos - 1468 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: 40
  • Position: #388 / 431
  • Number of attempts: 2
Reformat symbols in list - 1649 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #122 / 355
  • Number of attempts: 9
Poorly indented Python comments - 1348 entries

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

  • Best score: 15
  • Best player score: 53
  • Position: #173 / 224
  • Number of attempts: 3
Fix the shell script! - 2663 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 53
  • Position: #529 / 619
  • Number of attempts: 2
Visual block training - 1116 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 70
  • Position: #180 / 208
  • Number of attempts: 1
One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 34
  • Position: #3749 / 3893
  • Number of attempts: 2
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2260 / 3087
  • Number of attempts: 9
Line under headers - 2087 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 61
  • Position: #508 / 513
  • Number of attempts: 1
I forgot quotes - 16127 entries

Oops.

  • Best score: 10
  • Best player score: 27
  • Position: #4063 / 4208
  • Number of attempts: 2
Zachary Peterson
Twitter:

entered into 10 challenges

contributed 0 challenges