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

Replace markdown sections with numbering - 235 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 40
  • Position: #18 / 65
  • Number of attempts: 12
Rearrange array to single level - 1570 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 14
  • Position: #12 / 262
  • Number of attempts: 16
New teacher - 1393 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #136 / 291
  • Number of attempts: 2
Replace word while reserving first letter case - 637 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 24
  • Position: #26 / 123
  • Number of attempts: 10
months to html list items - 1098 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #44 / 299
  • Number of attempts: 8
Quicksort - 2049 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: 24
  • Position: #259 / 454
  • Number of attempts: 7
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: 15
  • Position: #237 / 424
  • Number of attempts: 5
Paste a column after a column - 2618 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 14
  • Position: #103 / 567
  • Number of attempts: 9
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: 24
  • Position: #63 / 352
  • Number of attempts: 10
yexia0
Github:

entered into 9 challenges

contributed 0 challenges