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 74 remaining solutions by signing in and submitting your own entry
#75 quatrix / @quatrix - Score: 111 - 11/06/23 @ 14:10
wwwhi    <Esc>jjjjllki    <Esc>kbbi    j<BS><Esc>jli <Esc>ji <Esc>kki <Esc>kbi<Esc>bwi   <Esc>kbbbi      <Esc>jjjjjbbbbi          <Esc>jbbbbi         <Esc>:x<CR>

0 comments


Created by: @Somin13

75 active golfers, 403 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

18
#8 - Jean George / @JeanGeo20504212

10/01/2023 at 08:53PM

18
#9 - Smylers / @Smylers2

10/02/2023 at 08:50AM

18
#10 - Andrew Morris / @AndrewJZ

10/13/2023 at 05:55AM

18
#11 - tien / @tien40766111

10/15/2023 at 05:07PM

18
#12 - Luoyb / @Luoyb

10/18/2023 at 06:42AM

18
#13 - erik.forex / @ErikForex

10/20/2023 at 10:35AM

18
#14 - Vimgolf User / @VimgolfU

10/27/2023 at 12:33PM

18
#15 - snkkid / @snkkid

10/30/2023 at 10:14AM

18
#16 - Yoseph Jeong / @yj65723

11/01/2023 at 04:44PM

18
#17 - ShookerAndBeta / @Shooker2012

11/02/2023 at 02:35AM

18
#18 - Henrique Malheiro / @rike09

11/09/2023 at 02:57PM

18
#19 - Blake Wingard / @Bats6789

11/15/2023 at 07:06PM

18
#20 - Opus28 / @Opus28

11/15/2023 at 08:17PM

18
#21 - Pablo Cárdenas / @pablo_cardenasb

11/17/2023 at 08:39PM

18
#22 - bpking1 / @bpking1

11/20/2023 at 11:47AM

18
#23 - Virginia Senioria / @91khr

11/20/2023 at 05:47PM

18
#24 - Monkey Boy / @monkey29089

11/21/2023 at 10:55AM

18
#25 - MartnRamtin / @MartnRamtin

11/21/2023 at 08:44PM

18
#26 - Lukasz Sroka / @louqash

11/23/2023 at 12:04AM

18
#27 - Irakli Chigvaria / @tchigvaria

11/23/2023 at 09:55AM

18
#28 - herbage / @herbage2

11/23/2023 at 02:53PM

18
#29 - くりち / 栗原佑弥 / @kurichi97

11/24/2023 at 03:30PM

18
#30 - 悟史 / @A1OBJTxN5fTg5EJ

11/27/2023 at 02:07PM