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 - 2038 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 / 452
  • Number of attempts: 11
Find fix point of cos - 1432 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: #381 / 424
  • Number of attempts: 2
Reformat symbols in list - 1635 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #121 / 352
  • Number of attempts: 9
Poorly indented Python comments - 1328 entries

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

  • Best score: 15
  • Best player score: 53
  • Position: #172 / 223
  • Number of attempts: 3
Fix the shell script! - 2606 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 53
  • Position: #518 / 607
  • Number of attempts: 2
Visual block training - 1089 entries

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

  • Best score: 17
  • Best player score: 70
  • Position: #178 / 206
  • Number of attempts: 1
One number per line - 18797 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 34
  • Position: #3738 / 3879
  • Number of attempts: 2
Add semicolons - 10899 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2254 / 3078
  • Number of attempts: 9
Line under headers - 2072 entries

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

  • Best score: 24
  • Best player score: 61
  • Position: #505 / 510
  • Number of attempts: 1
I forgot quotes - 16061 entries

Oops.

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

entered into 10 challenges

contributed 0 challenges