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

167 active golfers, 1175 entries

Leaderboard (lowest score wins):
18
#31 - Lukasz Sroka / @louqash

11/23/2023 at 12:04AM

18
#32 - Irakli Chigvaria / @tchigvaria

11/23/2023 at 09:55AM

18
#33 - herbage / @herbage2

11/23/2023 at 02:53PM

18
#34 - くりち / 栗原佑弥 / @kurichi97

11/24/2023 at 03:30PM

18
#35 - 悟史 / @A1OBJTxN5fTg5EJ

11/27/2023 at 02:07PM

18
#36 - ssiumha / @ssiumha

12/01/2023 at 09:35AM

18
#37 - Jonatas Rafael Carneiro Ribeiro / @jonatasrafael

12/01/2023 at 01:03PM

18
#38 - Joachim Wedin / @joachimwedin

12/06/2023 at 09:08AM

18
#39 - Eric Dobson / @ericdobson

12/06/2023 at 08:03PM

18
#40 - Vigneshkumar Chinnachamy / @vigneshTheDev

12/08/2023 at 02:14PM

18
#41 - Kerdan226-training / @Kerdan226-training

12/10/2023 at 01:02PM

18
#42 - levioneyh / @levioneyh

12/12/2023 at 10:20PM

18
#43 - TiOs-dev / @TiOs-dev

12/13/2023 at 12:24PM

18
#44 - DocsSorted / @DocsSorted

12/13/2023 at 10:23PM

18
#45 - masatosis / @masatosis

12/19/2023 at 12:05PM

18
#46 - a-bulte / @a-bulte

12/22/2023 at 05:02PM

18
#47 - dvquentincarrel / @dvquentincarrel

12/28/2023 at 02:36PM

18
#48 - Jasper v. B. / @jazzpi

12/29/2023 at 03:38PM

18
#49 - weixiaobaoL / @weixiaobaoL

01/02/2024 at 08:10AM

18
#50 - rasputins / @rasputins

01/04/2024 at 08:55PM

18
#51 - Matt Zhang / @MattUnderscoreZhang

01/05/2024 at 02:36PM

18
#52 - Arey125 / @Arey125

01/06/2024 at 12:44PM

18
#53 - cykirk / @cykirk

01/15/2024 at 02:17PM

18
#54 - epsilonshnepsilon / @epsilonshnepsilon

01/15/2024 at 02:54PM

18
#55 - 3akur6 / @3akur6

01/23/2024 at 04:34AM

18
#56 - shikitanrei / @shikitanrei

01/27/2024 at 11:03AM

18
#57 - QKSDM / @qksdm

01/31/2024 at 08:00PM

18
#58 - nightgather / @nightgather

02/06/2024 at 09:58AM

18
#59 - dehi / @dehidehidehi

02/11/2024 at 05:55PM

18
#60 - RiskyDissonance / @riskydissonance

02/20/2024 at 09:46AM