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, 1043 entries

Leaderboard (lowest score wins):
18
#61 - Jinli Xiao / @jinlixiao

03/11/2024 at 08:05PM

18
#62 - Euisoon Ahn / @esnahn

03/23/2024 at 12:42AM

18
#63 - Aristotelis Dossas / @teldosas

03/26/2024 at 08:47PM

18
#64 - St8Razor / @St8Razor

03/27/2024 at 04:12PM

18
#65 - Aly Thobani / @alythobani

04/03/2024 at 10:17PM

18
#66 - Miter / @MiterMe

04/05/2024 at 01:51AM

18
#67 - rcmosher / @rcmosher

04/05/2024 at 04:42PM

18
#68 - Peppa Pig / @PeppaPi95550250

04/06/2024 at 10:51AM

18
#69 - Kanmuruuruu / @Kanmuruuruu

04/07/2024 at 04:05PM

18
#70 - Lennart / @lennartack

04/15/2024 at 05:03PM

19
#71 - Nathan Budd / @nibudd

10/09/2023 at 10:07PM

19
#72 - cpif / @cpif

11/07/2023 at 09:12PM

19
#73 - Yordan Boikov / @yboikov

01/06/2024 at 09:46PM

19
#74 - jonas-grobe / @jonas-grobe

02/05/2024 at 04:01PM

20
#75 - James / @Dronak

10/10/2023 at 06:34PM

20
#76 - Martin Bielik / @mabielik

10/11/2023 at 02:08PM

20
#77 - AshleyF / @AshleyF

01/02/2024 at 08:45AM

20
#78 - Penbu / @penbuvt

02/16/2024 at 01:30AM

20
#79 - Ryo_Ishimoto / @RIshimoto

03/04/2024 at 09:34AM

21
#80 - Listen to the tubes / @EthanMcQuarrie

10/05/2023 at 03:47AM

21
#81 - かぼす / @umesawanokabosu

10/05/2023 at 11:00AM

21
#82 - TimMcGuire / @mcguire

12/31/2023 at 08:19PM

22
#83 - Maurice Schmicking / @m_schmicking

10/24/2023 at 09:58PM

22
#84 - ilyas / @Ahaaah2071

12/06/2023 at 04:15PM

22
#85 - maxdarling / @maxdarling

02/03/2024 at 09:02PM

22
#86 - Tomek / @Madghostek

04/22/2024 at 12:38AM

23
#87 - NDavis / @D1727374757

10/15/2023 at 01:35AM

23
#88 - iiujkk / @iiujkk2

10/25/2023 at 08:27PM

23
#89 - d / @dnadeau13

10/28/2023 at 11:35PM

23
#90 - Steve Shi / @steveshi7

02/10/2024 at 03:29AM