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

164 active golfers, 1158 entries

Leaderboard (lowest score wins):
21
#91 - かぼす / @umesawanokabosu

10/05/2023 at 11:00AM

21
#92 - TimMcGuire / @mcguire

12/31/2023 at 08:19PM

22
#93 - Maurice Schmicking / @m_schmicking

10/24/2023 at 09:58PM

22
#94 - ilyas / @Ahaaah2071

12/06/2023 at 04:15PM

22
#95 - maxdarling / @maxdarling

02/03/2024 at 09:02PM

22
#96 - luke37842 / @luke37842

05/16/2024 at 12:04AM

22
#97 - DayuanX / @DayuanX

10/09/2024 at 09:05AM

23
#98 - NDavis / @D1727374757

10/15/2023 at 01:35AM

23
#99 - iiujkk / @iiujkk2

10/25/2023 at 08:27PM

23
#100 - d / @dnadeau13

10/28/2023 at 11:35PM

23
#101 - Steve Shi / @steveshi7

02/10/2024 at 03:29AM

24
#102 - Michele Moio / @mmoio

12/15/2023 at 05:04PM

24
#103 - Noah Moss / @noahmoss

12/20/2023 at 03:40AM

24
#104 - ydbB / @ydbB

01/28/2024 at 04:59PM

24
#105 - Anaritus / @Anaritus

02/23/2024 at 12:05AM

24
#106 - Alex / @AlexanderHeatl2

02/28/2024 at 03:23AM

26
#107 - zoomhauer / @paulonhere

11/25/2023 at 07:37PM

26
#108 - e1mnos / @e1mnos

11/30/2023 at 03:43PM

26
#109 - uqs / @uqs

07/12/2024 at 12:40PM

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

11/01/2023 at 11:51PM

27
#111 - Arkady Buryakov / @ArkadyBuryakov

11/16/2023 at 06:25PM

27
#112 - Elvis Byounghoon Lee / @lbspresley

04/17/2024 at 04:00AM

28
#113 - Fabrizio Perria / @FPerria

11/05/2023 at 08:42AM

28
#114 - Michael Ye / @mly32

01/26/2024 at 11:55PM

30
#115 - Brian Le / @bkylele

12/26/2023 at 10:09PM

31
#116 - peccoth / @peccoth

01/04/2024 at 02:11PM

32
#117 - Prim Jack / @jack_prim72100

10/01/2023 at 09:45PM

32
#118 - ttl0 / @ttl0

03/16/2024 at 08:07PM

33
#119 - GE / @GE5943034860462

11/03/2023 at 06:48PM

33
#120 - John Oatey / @JojoMakesGames

11/08/2023 at 10:23PM