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 166 remaining solutions by signing in and submitting your own entry
#167 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

167 active golfers, 1175 entries

Leaderboard (lowest score wins):
17
#1 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

10/02/2023 at 05:19AM

17
#2 - John Braxler / @braxler

10/02/2023 at 06:42PM

17
#3 - scpchicken / @scpchick

10/18/2023 at 05:12PM

17
#4 - jinx balotchnik / @balotchnik

10/20/2023 at 08:13AM

17
#5 - FilipRazek / @FilipRazek

11/09/2023 at 04:53PM

17
#6 - Preisthe / @Preisthe

12/01/2023 at 09:39AM

17
#7 - Joey / @jrobertson20

12/03/2023 at 10:28PM

17
#8 - Vishal / @gyanantaran

01/01/2024 at 04:57PM

17
#9 - jeffreymrussell / @jeffreymrussell

01/03/2024 at 03:56PM

17
#10 - Michael Pruglo / @michael-pruglo

02/09/2024 at 05:16PM

17
#11 - Peppa Pig / @PeppaPigSg

07/11/2024 at 04:09AM

17
#12 - got_windy / @insomnight

11/22/2024 at 09:11AM

18
#13 - Jean George / @JeanGeo20504212

10/01/2023 at 08:53PM

18
#14 - “Smylers” / @Smylers2

10/02/2023 at 08:50AM

18
#15 - Andrew Morris / @AndrewJZ

10/13/2023 at 05:55AM

18
#16 - tien / @tien40766111

10/15/2023 at 05:07PM

18
#17 - Luoyb / @Luoyb

10/18/2023 at 06:42AM

18
#18 - erik.forex / @ErikForex

10/20/2023 at 10:35AM

18
#19 - Vimgolf User / @VimgolfU

10/27/2023 at 12:33PM

18
#20 - snkkid / @snkkid

10/30/2023 at 10:14AM

18
#21 - Yoseph Jeong / @yj65723

11/01/2023 at 04:44PM

18
#22 - ShookerAndBeta / @Shooker2012

11/02/2023 at 02:35AM

18
#23 - Henrique Malheiro / @rike09

11/09/2023 at 02:57PM

18
#24 - Blake Wingard / @Bats6789

11/15/2023 at 07:06PM

18
#25 - Leon Katsnelson / @leonkatsnelson

11/15/2023 at 08:17PM

18
#26 - Pablo Cárdenas / @pablo_cardenasb

11/17/2023 at 08:39PM

18
#27 - bpking1 / @bpking1

11/20/2023 at 11:47AM

18
#28 - Virginia Senioria / @91khr

11/20/2023 at 05:47PM

18
#29 - Monkey Boy / @monkey29089

11/21/2023 at 10:55AM

18
#30 - MartnRamtin / @MartnRamtin

11/21/2023 at 08:44PM