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

Markdown Blog Editing - 298 entries

Convert the given link text in start file to a markdown link list.

  • Best score: 30
  • Best player score: 85
  • Position: #60 / 70
  • Number of attempts: 1
Fix timezone format - 253 entries

Add the missing T and Z in the datetime field. There should be a T instead of the space, and a Z at the end of the datetime. `2024-08-31 18:32:00;` -> `2024-08-31T18:32:00Z;`

  • Best score: 15
  • Best player score: 17
  • Position: #44 / 85
  • Number of attempts: 3
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: 24
  • Position: #97 / 229
  • Number of attempts: 3
Deleting text - 257 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 47
  • Position: #52 / 84
  • Number of attempts: 1
New teacher - 1101 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 31
  • Position: #184 / 236
  • Number of attempts: 1
Truth Table to ModelSim - 58 entries

Convert this truth table to simulator instructions!

  • Best score: 64
  • Best player score: 164
  • Position: #15 / 17
  • Number of attempts: 1
months to html list items - 1042 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 24
  • Position: #72 / 284
  • Number of attempts: 6
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: 30
  • Position: #335 / 440
  • Number of attempts: 2
Populate 3D bone names list - 633 entries

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

  • Best score: 21
  • Best player score: 63
  • Position: #160 / 163
  • Number of attempts: 1
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: #223 / 418
  • Number of attempts: 4
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 12
  • Position: #485 / 557
  • Number of attempts: 5
Fix the shell script! - 2596 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 45
  • Position: #463 / 603
  • Number of attempts: 1
Java to JavaScript - 269 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 108
  • Position: #62 / 74
  • Number of attempts: 3
HS Final exam vimgolf - 904 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 44
  • Position: #212 / 238
  • Number of attempts: 1
Fix the XML - 1039 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 26
  • Position: #202 / 290
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 7154 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 40
  • Position: #858 / 1754
  • Number of attempts: 9
Jelani Felix
Github:

entered into 16 challenges

contributed 0 challenges