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

EDN reformat

The goal is to make the code more readable and concise while maintaining its functionality.

Start file
{:item (get-item)
 
:other-items (get-other-items)
 
:prev-item :none
 
:next-item :none
 
:template-name "default"
 
:inst #inst "2023-01-01T22:00:00-00:00"
 
:ident #uuid "6241d2fa-6048-11ee-8c99-0242ac120002"}}
End file
{:item           (get-item)
 
:other-items    (get-other-items)
 
:prev-item      :none
 
:next-item      :none
 
:template-name  "default"
 
:inst           #inst "2023-01-01T22:00:00-00:00"
 
:ident          #uuid "6241d2fa-6048-11ee-8c99-0242ac120002"}}

View Diff

1,7c1,7
< {:item (get-item)
<  :other-items (get-other-items)
<  :prev-item :none
<  :next-item :none
<  :template-name "default"
<  :inst #inst "2023-01-01T22:00:00-00:00"
<  :ident #uuid "6241d2fa-6048-11ee-8c99-0242ac120002"}}
---
> {:item           (get-item)
>  :other-items    (get-other-items)
>  :prev-item      :none
>  :next-item      :none
>  :template-name  "default"
>  :inst           #inst "2023-01-01T22:00:00-00:00"
>  :ident          #uuid "6241d2fa-6048-11ee-8c99-0242ac120002"}}

Solutions by @PeppaPigSg:

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

165 active golfers, 1160 entries

Solutions by @PeppaPigSg:
17
#11 - Peppa Pig / @PeppaPigSg

07/11/2024 at 04:09AM

18
#>69 - Peppa Pig / @PeppaPigSg

04/06/2024 at 10:51AM

19
#>82 - Peppa Pig / @PeppaPigSg

04/06/2024 at 10:47AM

20
#>87 - Peppa Pig / @PeppaPigSg

04/06/2024 at 10:36AM

21
#>92 - Peppa Pig / @PeppaPigSg

04/06/2024 at 10:34AM

24
#>106 - Peppa Pig / @PeppaPigSg

04/06/2024 at 10:22AM

26
#>108 - Peppa Pig / @PeppaPigSg

04/06/2024 at 10:18AM

27
#>111 - Peppa Pig / @PeppaPigSg

04/06/2024 at 10:14AM

30
#>115 - Peppa Pig / @PeppaPigSg

04/06/2024 at 10:13AM

31
#>116 - Peppa Pig / @PeppaPigSg

04/06/2024 at 10:05AM

34
#>126 - Peppa Pig / @PeppaPigSg

04/06/2024 at 09:59AM

38
#>132 - Peppa Pig / @PeppaPigSg

04/06/2024 at 09:54AM

43
#>140 - Peppa Pig / @PeppaPigSg

04/06/2024 at 09:37AM

50
#>143 - Peppa Pig / @PeppaPigSg

04/06/2024 at 09:30AM