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

146 active golfers, 1047 entries

Leaderboard (lowest score wins):
41
#121 - Aiden Yang / @yangxnn

12/15/2023 at 07:56AM

41
#122 - Seungho Lee / @llistnr

03/20/2024 at 05:00AM

41
#123 - Charlie-83 / @Charlie-83

04/18/2024 at 07:42AM

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

03/11/2024 at 10:58PM

43
#125 - demostanis / @demostanis

11/22/2023 at 07:44PM

46
#126 - jpggpj / @jpggpj

12/10/2023 at 05:37PM

48
#127 - Aaronyl / @AaronYll

11/25/2023 at 02:21PM

48
#128 - binayligal / @binayligal

12/31/2023 at 02:08PM

53
#129 - Michael Schneider / @m1-s

02/18/2024 at 06:26PM

57
#130 - Matthew Finlayson / @mattf1n

10/06/2023 at 08:31PM

62
#131 - zhihongCai / @zhihongCai

01/17/2024 at 07:34AM

63
#132 - Aaron Lucas / @aaron-lucas

11/05/2023 at 09:48AM

64
#133 - Eryk Walter / @ErykWalter

11/25/2023 at 12:15AM

64
#134 - ubaldot / @ubaldot

03/28/2024 at 12:33AM

68
#135 - Remus Dalrymple / @bornintheflames

11/24/2023 at 08:45AM

69
#136 - Andy / @andyfoster

04/06/2024 at 02:59AM

70
#137 - Bradley / @bradley_al42

10/15/2023 at 04:07AM

70
#138 - Matt Shen / @mattshen

01/22/2024 at 10:54AM

73
#139 - Anyatsu / @Anyatsu

11/27/2023 at 09:56PM

79
#140 - Nikita Gridinskiy / @djmittens

10/03/2023 at 11:44PM

80
#141 - Seok Hwan Kim / @gworldkim

10/11/2023 at 12:00AM

82
#142 - JetpackJackson / @JetpackJackson

11/12/2023 at 08:36PM

82
#143 - Pandelis Sfinias / @pandelis777

12/04/2023 at 11:16AM

92
#144 - Lily / @totallyuniquelily

04/21/2024 at 02:15PM

93
#145 - YuYangyao / @YuYangyao

03/26/2024 at 02:41PM

111
#146 - quatrix / @quatrix

11/06/2023 at 02:10PM