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 - 1559 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 / 344
  • Number of attempts: 11
Find fix point of cos - 1137 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: #304 / 340
  • Number of attempts: 2
Reformat symbols in list - 1470 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #110 / 323
  • Number of attempts: 9
Poorly indented Python comments - 1173 entries

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

  • Best score: 15
  • Best player score: 53
  • Position: #157 / 204
  • Number of attempts: 3
Fix the shell script! - 2344 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 53
  • Position: #463 / 542
  • Number of attempts: 2
Visual block training - 1005 entries

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

  • Best score: 17
  • Best player score: 70
  • Position: #161 / 185
  • Number of attempts: 1
One number per line - 18616 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 34
  • Position: #3704 / 3842
  • Number of attempts: 2
Add semicolons - 10792 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2226 / 3044
  • Number of attempts: 9
Line under headers - 2004 entries

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

  • Best score: 24
  • Best player score: 61
  • Position: #491 / 496
  • Number of attempts: 1
I forgot quotes - 15931 entries

Oops.

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

entered into 10 challenges

contributed 0 challenges