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

68 active golfers, 347 entries

Leaderboard (lowest score wins):
18
#31 - Jonatas Rafael Carneiro Ribeiro / @jonatasrafael

12/01/2023 at 01:03PM

19
#32 - Nathan Budd / @nibudd

10/09/2023 at 10:07PM

19
#33 - cpif / @cpif

11/07/2023 at 09:12PM

20
#34 - James / @Dronak

10/10/2023 at 06:34PM

20
#35 - Martin Bielik / @mabielik

10/11/2023 at 02:08PM

21
#36 - Listen to the tubes / @EthanMcQuarrie

10/05/2023 at 03:47AM

21
#37 - かぼす / @umesawanokabosu

10/05/2023 at 11:00AM

22
#38 - Maurice Schmicking / @m_schmicking

10/24/2023 at 09:58PM

23
#39 - NDavis / @D1727374757

10/15/2023 at 01:35AM

23
#40 - iiujkk / @iiujkk2

10/25/2023 at 08:27PM

23
#41 - d / @dnadeau13

10/28/2023 at 11:35PM

26
#42 - zoomhauer / @oregonian_youth

11/25/2023 at 07:37PM

26
#43 - e1mnos / @e1mnos

11/30/2023 at 03:43PM

27
#44 - emre özküçük / @emreozkucuk

11/01/2023 at 11:51PM

27
#45 - Arkady Buryakov / @ArkadyBuryakov

11/16/2023 at 06:25PM

28
#46 - Fabrizio Perria / @FPerria

11/05/2023 at 08:42AM

32
#47 - Prim Jack / @jack_prim72100

10/01/2023 at 09:45PM

33
#48 - GE / @GE5943034860462

11/03/2023 at 06:48PM

33
#49 - John Oatey / @JojoMakesGames

11/08/2023 at 10:23PM

33
#50 - Jason Amador / @jasonamador

11/16/2023 at 05:21AM

33
#51 - Ludovic Schwartz / @ludovicschwartz

11/16/2023 at 03:43PM

33
#52 - Benjamin Daniel Suarez / @benjaminsuarez

11/22/2023 at 05:18PM

34
#53 - LandR / @ListenAndR

10/11/2023 at 01:59AM

35
#54 - KP / @KPatr1ck

11/06/2023 at 10:31AM

36
#55 - fengc / @fengc

10/08/2023 at 10:00AM

37
#56 - YoungDong Kim / @zeroest

11/19/2023 at 09:18AM

43
#57 - demostanis / @demostanis

11/22/2023 at 07:44PM

48
#58 - Aaronyl / @AaronYll

11/25/2023 at 02:21PM

57
#59 - Matthew Finlayson / @mattf1n

10/06/2023 at 08:31PM

63
#60 - Aaron Lucas / @aaron-lucas

11/05/2023 at 09:48AM