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

Filling braces - 103 entries

Inspired by a question on CoDidact (https://software.codidact.com/posts/296501), I wondered if Vim could offer a satisfactory ‘solution’ to this problem.

  • Best score: 24
  • Best player score: 24
  • Position: #3 / 36
  • Number of attempts: 5
Even and Odd - 234 entries

separate the even numbers from the odd numbers

  • Best score: 13
  • Best player score: 19
  • Position: #28 / 52
  • Number of attempts: 1
Flip All Bits - 400 entries

Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.

  • Best score: 26
  • Best player score: 29
  • Position: #10 / 122
  • Number of attempts: 8
Find the devices that have no revoked time, and extract out the duration left on their leases. - 212 entries

Extract non-revoked devices and the duration of their leases.

  • Best score: 50
  • Best player score: 61
  • Position: #18 / 53
  • Number of attempts: 9
Reordering properties - 1372 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 24
  • Position: #3 / 298
  • Number of attempts: 9
Sort and Tag - 737 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 36
  • Best player score: 87
  • Position: #79 / 156
  • Number of attempts: 3
Changing date formats - 751 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 67
  • Position: #76 / 211
  • Number of attempts: 2
Hugh Davenport
Github:

entered into 7 challenges

contributed 0 challenges