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

162 active golfers, 1141 entries

Leaderboard (lowest score wins):
18
#61 - Mike Rayner / @mikesfake

03/09/2024 at 10:57AM

18
#62 - Jinli Xiao / @jinlixiao

03/11/2024 at 08:05PM

18
#63 - Euisoon Ahn / @esnahn

03/23/2024 at 12:42AM

18
#64 - Aristotelis Dossas / @teldosas

03/26/2024 at 08:47PM

18
#65 - St8Razor / @St8Razor

03/27/2024 at 04:12PM

18
#66 - Aly Thobani / @alythobani

04/03/2024 at 10:17PM

18
#67 - Miter / @MiterMe

04/05/2024 at 01:51AM

18
#68 - rcmosher / @rcmosher

04/05/2024 at 04:42PM

18
#69 - Kanmuruuruu / @Kanmuruuruu

04/07/2024 at 04:05PM

18
#70 - Lennart / @lennartack

04/15/2024 at 05:03PM

18
#71 - Tomek / @Madghostek

04/22/2024 at 12:41AM

18
#72 - constap / @constap

04/24/2024 at 04:36PM

18
#73 - Tsimon Dorakh / @Tsimon-Dorakh

06/04/2024 at 05:20PM

18
#74 - Brandon Forrest / @brandonf2002

09/10/2024 at 08:40PM

18
#75 - Qingz / @Noct943

10/09/2024 at 07:04PM

18
#76 - Berel94 / @Berel94

11/08/2024 at 05:00PM

19
#77 - Nathan Budd / @nibudd

10/09/2023 at 10:07PM

19
#78 - cpif / @cpif

11/07/2023 at 09:12PM

19
#79 - Yordan Boikov / @yboikov

01/06/2024 at 09:46PM

19
#80 - jonas-grobe / @jonas-grobe

02/05/2024 at 04:01PM

20
#81 - James / @Dronak

10/10/2023 at 06:34PM

20
#82 - Martin Bielik / @mabielik

10/11/2023 at 02:08PM

20
#83 - AshleyF / @AshleyF

01/02/2024 at 08:45AM

20
#84 - Penbu / @penbuvt

02/16/2024 at 01:30AM

20
#85 - Ryo_Ishimoto / @RIshimoto

03/04/2024 at 09:34AM

20
#86 - James Tan / @jamesbtan

05/06/2024 at 08:59PM

20
#87 - Highlander Paiva / @hvpaiva

10/25/2024 at 10:23AM

21
#88 - Pretend it's Beef / @EthanMcQuarrie

10/05/2023 at 03:47AM

21
#89 - かぼす / @umesawanokabosu

10/05/2023 at 11:00AM

21
#90 - TimMcGuire / @mcguire

12/31/2023 at 08:19PM