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 9v00695df1d5000000000766

Find the devices that have no revoked time, and extract out the duration left on their leases.

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

Start file
{
  "devices": [
    {
      "deviceId": "Mac14_6_5ba3030d2b36441d9fb186ea65df6b66",
      "platform": "OSXEditor",
      "name": "Whitakr-MacBook-Pro",
      "activatedAt": 1767580222997,
      "lastSeen": 1767611345716,
      "revokedAt": 1767611362585,
      "leaseUntil": 1767697745716
    },
    {
      "deviceId": "iPad1",
      "platform": "ios",
      "name": "iPad",
      "activatedAt": 1767611327269,
      "lastSeen": 1767611327269,
      "revokedAt": 1767611362585,
      "leaseUntil": 1767697727269
    },
    {
      "deviceId": "iPad2",
      "platform": "ios",
      "name": "iPad",
      "activatedAt": 1767611369550,
      "lastSeen": 1767611369550,
      "revokedAt": null,
      "leaseUntil": 1767697769550
    },
    {
      "deviceId": "iPad3",
      "platform": "ios",
      "name": "iPad",
      "activatedAt": 1767611369552,
      "lastSeen": 1767611369552,
      "revokedAt": null,
      "leaseUntil": 1767784169552
    }
  ]
}
End file
{
  "deviceLeaseDurations": [
    "iPad2": 86400000,
    "iPad3": 172800000
  ]
}

View Diff

2,38c2,4
<   "devices": [
<     {
<       "deviceId": "Mac14_6_5ba3030d2b36441d9fb186ea65df6b66",
<       "platform": "OSXEditor",
<       "name": "Whitakr-MacBook-Pro",
<       "activatedAt": 1767580222997,
<       "lastSeen": 1767611345716,
<       "revokedAt": 1767611362585,
<       "leaseUntil": 1767697745716
<     },
<     {
<       "deviceId": "iPad1",
<       "platform": "ios",
<       "name": "iPad",
<       "activatedAt": 1767611327269,
<       "lastSeen": 1767611327269,
<       "revokedAt": 1767611362585,
<       "leaseUntil": 1767697727269
<     },
<     {
<       "deviceId": "iPad2",
<       "platform": "ios",
<       "name": "iPad",
<       "activatedAt": 1767611369550,
<       "lastSeen": 1767611369550,
<       "revokedAt": null,
<       "leaseUntil": 1767697769550
<     },
<     {
<       "deviceId": "iPad3",
<       "platform": "ios",
<       "name": "iPad",
<       "activatedAt": 1767611369552,
<       "lastSeen": 1767611369552,
<       "revokedAt": null,
<       "leaseUntil": 1767784169552
<     }
---
>   "deviceLeaseDurations": [
>     "iPad2": 86400000,
>     "iPad3": 172800000

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 6 remaining solutions by signing in and submitting your own entry
#7 Daniel / @2phost - Score: 80 - 01/11/26 @ 00:32
/s<CR>sLeaseDurations<fd-6b>di[i<50-53>  "iPad2": 86400000,<NL>    "iPad3": 172800000<NL>  <Esc>[201~<fd-6b>:x<CR>

0 comments


Created by: @wtrebella

7 active golfers, 12 entries

Leaderboard (lowest score wins):
50
#1 - Peppa Pig / @PeppaPigSg

01/18/2026 at 03:24AM

56
#2 - “Smylers” / @Smylers2

01/17/2026 at 11:35PM

59
#3 - ZEraX4 / @ZEraX4

01/08/2026 at 07:38AM

59
#4 - Whitaker Trebella / @wtrebella

01/12/2026 at 06:21AM

63
#5 - mutilator630 / @mutilator630

01/13/2026 at 09:52PM

79
#6 - Karate Snoopy / @KarateSnoopy

01/21/2026 at 06:25AM

80
#7 - Daniel / @2phost

01/11/2026 at 12:32AM