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

169 active golfers, 1193 entries

Leaderboard (lowest score wins):
32
#121 - ttl0 / @ttl0

03/16/2024 at 08:07PM

33
#122 - GE / @GE5943034860462

11/03/2023 at 06:48PM

33
#123 - John Oatey / @JojoMakesGames

11/08/2023 at 10:23PM

33
#124 - Jason Amador / @jasonamador

11/16/2023 at 05:21AM

33
#125 - Ludovic Schwartz / @ludovicschwartz

11/16/2023 at 03:43PM

33
#126 - Benjamin Daniel Suarez / @benjaminsuarez

11/22/2023 at 05:18PM

33
#127 - Kristóf Cserpes / @KriCse

02/25/2024 at 05:37PM

33
#128 - Namdrib / @Namdrib

07/21/2024 at 12:07PM

34
#129 - LandR / @ListenAndR

10/11/2023 at 01:59AM

34
#130 - Marius Ropotica / @cipmar

04/06/2024 at 06:00PM

34
#131 - yinxd15 / @yinxd15

04/30/2025 at 03:26AM

35
#132 - KP / @KPatr1ck

11/06/2023 at 10:31AM

35
#133 - Josh Pius / @josh-pius

12/07/2023 at 06:52PM

36
#134 - fengc / @fengc

10/08/2023 at 10:00AM

37
#135 - YoungDong Kim / @zeroest

11/19/2023 at 09:18AM

37
#136 - Choan / @choan

03/17/2024 at 08:31PM

40
#137 - Vlad Yaglamunov / @VladYaglamunov

12/06/2023 at 01:57PM

41
#138 - Aiden Yang / @yangxnn

12/15/2023 at 07:56AM

41
#139 - Seungho Lee / @llistnr

03/20/2024 at 05:00AM

41
#140 - Charlie-83 / @Charlie-83

04/18/2024 at 07:42AM

41
#141 - Jannik Birk / @dernatsch

05/01/2024 at 09:15AM

41
#142 - demouo / @demouo

10/25/2024 at 12:49PM

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

03/11/2024 at 10:58PM

43
#144 - demostanis / @demostanis

11/22/2023 at 07:44PM

46
#145 - jpggpj / @jpggpj

12/10/2023 at 05:37PM

48
#146 - Aaronyl / @AaronYll

11/25/2023 at 02:21PM

48
#147 - binayligal / @binayligal

12/31/2023 at 02:08PM

53
#148 - Michael Schneider / @m1-s

02/18/2024 at 06:26PM

57
#149 - Matthew Finlayson / @mattf1n

10/06/2023 at 08:31PM

59
#150 - Peter Szerzo / @peterszerzo

09/27/2024 at 03:44PM