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

153 active golfers, 1099 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 / @PeppaPi95550250

07/11/2024 at 04:09AM

18
#12 - Jean George / @JeanGeo20504212

10/01/2023 at 08:53PM

18
#13 - Smylers / @Smylers2

10/02/2023 at 08:50AM

18
#14 - Andrew Morris / @AndrewJZ

10/13/2023 at 05:55AM

18
#15 - tien / @tien40766111

10/15/2023 at 05:07PM

18
#16 - Luoyb / @Luoyb

10/18/2023 at 06:42AM

18
#17 - erik.forex / @ErikForex

10/20/2023 at 10:35AM

18
#18 - Vimgolf User / @VimgolfU

10/27/2023 at 12:33PM

18
#19 - snkkid / @snkkid

10/30/2023 at 10:14AM

18
#20 - Yoseph Jeong / @yj65723

11/01/2023 at 04:44PM

18
#21 - ShookerAndBeta / @Shooker2012

11/02/2023 at 02:35AM

18
#22 - Henrique Malheiro / @rike09

11/09/2023 at 02:57PM

18
#23 - Blake Wingard / @Bats6789

11/15/2023 at 07:06PM

18
#24 - Leon Katsnelson / @leonkatsnelson

11/15/2023 at 08:17PM

18
#25 - Pablo Cárdenas / @pablo_cardenasb

11/17/2023 at 08:39PM

18
#26 - bpking1 / @bpking1

11/20/2023 at 11:47AM

18
#27 - Virginia Senioria / @91khr

11/20/2023 at 05:47PM

18
#28 - Monkey Boy / @monkey29089

11/21/2023 at 10:55AM

18
#29 - MartnRamtin / @MartnRamtin

11/21/2023 at 08:44PM

18
#30 - Lukasz Sroka / @louqash

11/23/2023 at 12:04AM