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

141 active golfers, 1012 entries

Leaderboard (lowest score wins):
24
#91 - ydbB / @ydbB

01/28/2024 at 04:59PM

24
#92 - Anaritus / @Anaritus

02/23/2024 at 12:05AM

24
#93 - Alex / @AlexanderHeatl2

02/28/2024 at 03:23AM

26
#94 - zoomhauer / @paulonhere

11/25/2023 at 07:37PM

26
#95 - e1mnos / @e1mnos

11/30/2023 at 03:43PM

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

11/01/2023 at 11:51PM

27
#97 - Arkady Buryakov / @ArkadyBuryakov

11/16/2023 at 06:25PM

28
#98 - Fabrizio Perria / @FPerria

11/05/2023 at 08:42AM

28
#99 - Michael Ye / @mly32

01/26/2024 at 11:55PM

30
#100 - Brian Le / @bkylele

12/26/2023 at 10:09PM

31
#101 - peccoth / @peccoth

01/04/2024 at 02:11PM

32
#102 - Prim Jack / @jack_prim72100

10/01/2023 at 09:45PM

32
#103 - ttl0 / @ttl0

03/16/2024 at 08:07PM

33
#104 - GE / @GE5943034860462

11/03/2023 at 06:48PM

33
#105 - John Oatey / @JojoMakesGames

11/08/2023 at 10:23PM

33
#106 - Jason Amador / @jasonamador

11/16/2023 at 05:21AM

33
#107 - Ludovic Schwartz / @ludovicschwartz

11/16/2023 at 03:43PM

33
#108 - Benjamin Daniel Suarez / @benjaminsuarez

11/22/2023 at 05:18PM

33
#109 - Kristóf Cserpes / @KriCse

02/25/2024 at 05:37PM

34
#110 - LandR / @ListenAndR

10/11/2023 at 01:59AM

34
#111 - Marius Ropotica / @cipmar

04/06/2024 at 06:00PM

35
#112 - KP / @KPatr1ck

11/06/2023 at 10:31AM

35
#113 - josh-pius / @josh-pius

12/07/2023 at 06:52PM

36
#114 - fengc / @fengc

10/08/2023 at 10:00AM

37
#115 - YoungDong Kim / @zeroest

11/19/2023 at 09:18AM

37
#116 - Choan / @choan

03/17/2024 at 08:31PM

40
#117 - Vlad Yaglamunov / @VladYaglamunov

12/06/2023 at 01:57PM

41
#118 - Aiden Yang / @yangxnn

12/15/2023 at 07:56AM

41
#119 - Seungho Lee / @llistnr

03/20/2024 at 05:00AM

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

03/11/2024 at 10:58PM