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 - 196 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 40
  • Position: #14 / 61
  • Number of attempts: 12
Rearrange array to single level - 1495 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 / 247
  • Number of attempts: 16
New teacher - 1357 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #134 / 282
  • Number of attempts: 2
Replace word while reserving first letter case - 636 entries

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

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

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #44 / 295
  • Number of attempts: 8
Quicksort - 2035 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: #258 / 450
  • Number of attempts: 7
Find fix point of cos - 1426 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 / 422
  • Number of attempts: 5
Paste a column after a column - 2604 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 / 565
  • Number of attempts: 9
Reformat symbols in list - 1633 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #63 / 351
  • Number of attempts: 10
yexia0
Github:

entered into 9 challenges

contributed 0 challenges