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 36 remaining solutions by signing in and submitting your own entry
#37 CyberTwizted / @CyberTwizted - Score: 305 - 03/17/26 @ 05:04
G:g/revokedAt": [^n]/normal da{<CR>:v/deviceId\|activatedAt\|leaseUntil/d<CR>Ggg3Jj3J$bbyww"bywbbbbb"cyw$a <C-R>=@b-@c<CR>j<BS><Esc>kb"bywbbbbb"cyw$a <C-R>=@b-@c<CR><Esc>8bbb10dwu8dwdwj9dwGggdbjwdbuggi{<CR><BS>  deviceLeaseDuracti<BS><BS><BS>tions'<BS><CR><BS><BS><BS>":<Esc>bbi"<Esc>wwwjkhi [<CR><BS><BS><BS>    <Esc>dwdwdwdwwhi <Esc>wwwa:<Del><Esc>wwb$a,<Right><Down><Esc>bbbbbi<BS><BS>dw<BS><BS><Esc>dwdwdwdwi <Esc>wwwa<Del>:<Esc>wwa<CR>]<CR>}<Esc>:wq<CR>

0 comments


Created by: @wtrebella

37 active golfers, 123 entries

Leaderboard (lowest score wins):
94
#31 - M00NLIG7 / @M00NLIG7

03/02/2026 at 07:45PM

96
#32 - ProGamerYeet / @ProGamerYeet

02/12/2026 at 11:10AM

98
#33 - Hugh Vidler / @OnlyHughMan

02/01/2026 at 12:57PM

112
#34 - Daniil Tkachenko / @deadpadre

04/19/2026 at 12:17AM

115
#35 - Stanislav Kuzmin / @skntxtrd

04/12/2026 at 02:17PM

280
#36 - cjmHK / @cjmHK

03/17/2026 at 06:15AM

305
#37 - CyberTwizted / @CyberTwizted

03/17/2026 at 05:04AM