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

CaN yOuR ViM dO ThAt? #1 - 239 entries

Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091

  • Best score: 41
  • Best player score: 45
  • Position: #41 / 91
  • Number of attempts: 4
Remove adjacent duplicates - 646 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 19
  • Position: #12 / 162
  • Number of attempts: 12
Rearrange array to single level - 1649 entries

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

  • Best score: 14
  • Best player score: 65
  • Position: #250 / 272
  • Number of attempts: 1
Rearrange array to one line - 758 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 14
  • Position: #37 / 182
  • Number of attempts: 9
New teacher - 1423 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 27
  • Position: #174 / 300
  • Number of attempts: 1
Replace word while reserving first letter case - 641 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #21 / 124
  • Number of attempts: 10
months to html list items - 1110 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 23
  • Position: #47 / 301
  • Number of attempts: 8
Populate 3D bone names list - 638 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 30
  • Position: #98 / 166
  • Number of attempts: 2
Find fix point of cos - 1444 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 / 427
  • Number of attempts: 1
Surround the 'z' character with brackets, quotes, and print as formatted string. - 572 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #213 / 321
  • Number of attempts: 2
delete swap - 1818 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #339 / 567
  • Number of attempts: 4
hello-world-vimgolf - 2513 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #326 / 717
  • Number of attempts: 3
ahenches
Github:

entered into 12 challenges

contributed 0 challenges