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

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 160 remaining solutions by signing in and submitting your own entry
#161 Jan Scholz / @radikalliberal - Score: 123 - 10/17/24 @ 21:13
:%s/:\S*<Left><Left><Left><Left>.<Left>$<BS>^<Right><Right><Left><Left><Left>(<End>)<Left><Left><Left><Left><Left><Left><Left><Left><Right><Right><Right><Right><Right><Right><Right><Right><Right><Left><Left><Left><Left><Left><Left><Left><BS><End><BS>)<BS><Left><Left><Left><Left><Left><Left>\(<End>\)\ /\1          /<CR><Esc>ggf(<Left>:<Up><Left><BS><BS><BS><BS><BS><BS><BS><BS><BS><CR>:<Up><Left> <CR>f#<Left>x<Up><Up>dw<Up>.<Up>.<Up>.<Esc>ZZ

0 comments


Created by: @Somin13

161 active golfers, 1140 entries

Leaderboard (lowest score wins):
33
#121 - Kristóf Cserpes / @KriCse

02/25/2024 at 05:37PM

33
#122 - Namdrib / @Namdrib

07/21/2024 at 12:07PM

34
#123 - LandR / @ListenAndR

10/11/2023 at 01:59AM

34
#124 - Marius Ropotica / @cipmar

04/06/2024 at 06:00PM

35
#125 - KP / @KPatr1ck

11/06/2023 at 10:31AM

35
#126 - Josh Pius / @josh-pius

12/07/2023 at 06:52PM

36
#127 - fengc / @fengc

10/08/2023 at 10:00AM

37
#128 - YoungDong Kim / @zeroest

11/19/2023 at 09:18AM

37
#129 - Choan / @choan

03/17/2024 at 08:31PM

40
#130 - Vlad Yaglamunov / @VladYaglamunov

12/06/2023 at 01:57PM

41
#131 - Aiden Yang / @yangxnn

12/15/2023 at 07:56AM

41
#132 - Seungho Lee / @llistnr

03/20/2024 at 05:00AM

41
#133 - Charlie-83 / @Charlie-83

04/18/2024 at 07:42AM

41
#134 - Jannik Birk / @dernatsch

05/01/2024 at 09:15AM

41
#135 - demouo / @demouo

10/25/2024 at 12:49PM

42
#136 - Let-me-C / @Let-me-C

03/11/2024 at 10:58PM

43
#137 - demostanis / @demostanis

11/22/2023 at 07:44PM

46
#138 - jpggpj / @jpggpj

12/10/2023 at 05:37PM

48
#139 - Aaronyl / @AaronYll

11/25/2023 at 02:21PM

48
#140 - binayligal / @binayligal

12/31/2023 at 02:08PM

53
#141 - Michael Schneider / @m1-s

02/18/2024 at 06:26PM

57
#142 - Matthew Finlayson / @mattf1n

10/06/2023 at 08:31PM

59
#143 - Peter Szerzo / @peterszerzo

09/27/2024 at 03:44PM

62
#144 - zhihongCai / @zhihongCai

01/17/2024 at 07:34AM

63
#145 - Aaron Lucas / @aaron-lucas

11/05/2023 at 09:48AM

64
#146 - Eryk Walter / @ErykWalter

11/25/2023 at 12:15AM

64
#147 - ubaldot / @ubaldot

03/28/2024 at 12:33AM

68
#148 - Remus Dalrymple / @bornintheflames

11/24/2023 at 08:45AM

69
#149 - Andy / @andyfoster

04/06/2024 at 02:59AM

70
#150 - Bradley / @bradley_al42

10/15/2023 at 04:07AM