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

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 40
  • Position: #13 / 53
  • Number of attempts: 12
Rearrange array to single level - 1396 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 / 229
  • Number of attempts: 16
New teacher - 1101 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #115 / 236
  • Number of attempts: 2
Replace word while reserving first letter case - 620 entries

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

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

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #44 / 284
  • Number of attempts: 8
Quicksort - 2002 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: #253 / 440
  • Number of attempts: 7
Find fix point of cos - 1408 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: #235 / 418
  • Number of attempts: 5
Paste a column after a column - 2555 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 / 557
  • Number of attempts: 9
Reformat symbols in list - 1625 entries

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

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

entered into 9 challenges

contributed 0 challenges