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 by @GavinKoeng:

Unlock 14 remaining solutions by signing in and submitting your own entry
Created by: @wtrebella

51 active golfers, 200 entries

Solutions by @GavinKoeng:
50
#3 - Gavin / @GavinKoeng

07/15/2026 at 04:50AM

53
#>4 - Gavin / @GavinKoeng

07/15/2026 at 04:49AM

54
#>6 - Gavin / @GavinKoeng

07/15/2026 at 04:46AM

56
#>10 - Gavin / @GavinKoeng

07/15/2026 at 04:46AM

57
#>11 - Gavin / @GavinKoeng

07/15/2026 at 04:45AM

59
#>15 - Gavin / @GavinKoeng

07/15/2026 at 04:43AM

60
#>17 - Gavin / @GavinKoeng

07/15/2026 at 04:42AM

62
#>19 - Gavin / @GavinKoeng

07/15/2026 at 04:41AM

66
#>21 - Gavin / @GavinKoeng

07/15/2026 at 04:40AM

71
#>24 - Gavin / @GavinKoeng

07/15/2026 at 04:39AM

73
#>26 - Gavin / @GavinKoeng

07/15/2026 at 04:38AM

78
#>31 - Gavin / @GavinKoeng

07/15/2026 at 04:37AM

83
#>36 - Gavin / @GavinKoeng

07/15/2026 at 04:35AM

89
#>39 - Gavin / @GavinKoeng

07/15/2026 at 04:34AM