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

150 active golfers, 1069 entries

Leaderboard (lowest score wins):
18
#31 - herbage / @herbage2

11/23/2023 at 02:53PM

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

11/24/2023 at 03:30PM

18
#33 - 悟史 / @A1OBJTxN5fTg5EJ

11/27/2023 at 02:07PM

18
#34 - ssiumha / @ssiumha

12/01/2023 at 09:35AM

18
#35 - Jonatas Rafael Carneiro Ribeiro / @jonatasrafael

12/01/2023 at 01:03PM

18
#36 - Joachim Wedin / @joachimwedin

12/06/2023 at 09:08AM

18
#37 - Eric Dobson / @ericdobson

12/06/2023 at 08:03PM

18
#38 - Vigneshkumar Chinnachamy / @vigneshTheDev

12/08/2023 at 02:14PM

18
#39 - Kerdan226-training / @Kerdan226-training

12/10/2023 at 01:02PM

18
#40 - levioneyh / @levioneyh

12/12/2023 at 10:20PM

18
#41 - TiOs-dev / @TiOs-dev

12/13/2023 at 12:24PM

18
#42 - DocsSorted / @DocsSorted

12/13/2023 at 10:23PM

18
#43 - masatosis / @masatosis

12/19/2023 at 12:05PM

18
#44 - a-bulte / @a-bulte

12/22/2023 at 05:02PM

18
#45 - dvquentincarrel / @dvquentincarrel

12/28/2023 at 02:36PM

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

12/29/2023 at 03:38PM

18
#47 - weixiaobaoL / @weixiaobaoL

01/02/2024 at 08:10AM

18
#48 - rasputins / @rasputins

01/04/2024 at 08:55PM

18
#49 - Matt Zhang / @MattUnderscoreZhang

01/05/2024 at 02:36PM

18
#50 - Arey125 / @Arey125

01/06/2024 at 12:44PM

18
#51 - cykirk / @cykirk

01/15/2024 at 02:17PM

18
#52 - epsilonshnepsilon / @epsilonshnepsilon

01/15/2024 at 02:54PM

18
#53 - 3akur6 / @3akur6

01/23/2024 at 04:34AM

18
#54 - shikitanrei / @shikitanrei

01/27/2024 at 11:03AM

18
#55 - QKSDM / @qksdm

01/31/2024 at 08:00PM

18
#56 - nightgather / @nightgather

02/06/2024 at 09:58AM

18
#57 - dehi / @dehidehidehi

02/11/2024 at 05:55PM

18
#58 - RiskyDissonance / @riskydissonance

02/20/2024 at 09:46AM

18
#59 - Ilya Shakirov / @ilya-shakirov

03/07/2024 at 01:14PM

18
#60 - Mike Rayner / @mikesfake

03/09/2024 at 10:57AM