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 - 2000 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 / 438
  • Number of attempts: 11
Find fix point of cos - 1403 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: #373 / 416
  • Number of attempts: 2
Reformat symbols in list - 1621 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #120 / 348
  • Number of attempts: 9
Poorly indented Python comments - 1315 entries

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

  • Best score: 15
  • Best player score: 53
  • Position: #170 / 221
  • Number of attempts: 3
Fix the shell script! - 2546 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 53
  • Position: #503 / 591
  • Number of attempts: 2
Visual block training - 1075 entries

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

  • Best score: 17
  • Best player score: 70
  • Position: #177 / 205
  • Number of attempts: 1
One number per line - 18751 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 34
  • Position: #3728 / 3869
  • Number of attempts: 2
Add semicolons - 10877 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2247 / 3070
  • Number of attempts: 9
Line under headers - 2054 entries

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

  • Best score: 24
  • Best player score: 61
  • Position: #501 / 506
  • Number of attempts: 1
I forgot quotes - 16014 entries

Oops.

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

entered into 10 challenges

contributed 0 challenges