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 9v0066f44ec20000000003ea

Move list of uuids into a SQL query

Take the list of UUIDs and use them as a filter in the where statement of a SQL query

Start file
26cf42ef-4dbc-4f09-9a80-354e312d207b
35ec0072-059a-4fbe-9396-e35533539a79
6445380c-85ec-4f00-a542-175d7e057d81
c4b5a912-1f4e-4cc1-836b-7a9989e21033
1e6807a8-10c7-47b2-8d1a-e0e8b161e0c6
54a0ca49-274a-4ee0-a276-de678fdda6e8
0d04dbef-1788-4e79-aab4-442b65e353f8
3cdcb0f6-eb68-4495-8783-91f8a3d133d0
d36742bd-70b3-4bff-beb1-657b85a520b0
38841b70-b255-49fa-ada1-29f76981c8e3
End file
SELECT *
FROM my_table
WHERE id IN (
    '26cf42ef-4dbc-4f09-9a80-354e312d207b',
    '35ec0072-059a-4fbe-9396-e35533539a79',
    '6445380c-85ec-4f00-a542-175d7e057d81',
    'c4b5a912-1f4e-4cc1-836b-7a9989e21033',
    '1e6807a8-10c7-47b2-8d1a-e0e8b161e0c6',
    '54a0ca49-274a-4ee0-a276-de678fdda6e8',
    '0d04dbef-1788-4e79-aab4-442b65e353f8',
    '3cdcb0f6-eb68-4495-8783-91f8a3d133d0',
    'd36742bd-70b3-4bff-beb1-657b85a520b0',
    '38841b70-b255-49fa-ada1-29f76981c8e3'
)

View Diff

1,10c1,14
< 26cf42ef-4dbc-4f09-9a80-354e312d207b
< 35ec0072-059a-4fbe-9396-e35533539a79
< 6445380c-85ec-4f00-a542-175d7e057d81
< c4b5a912-1f4e-4cc1-836b-7a9989e21033
< 1e6807a8-10c7-47b2-8d1a-e0e8b161e0c6
< 54a0ca49-274a-4ee0-a276-de678fdda6e8
< 0d04dbef-1788-4e79-aab4-442b65e353f8
< 3cdcb0f6-eb68-4495-8783-91f8a3d133d0
< d36742bd-70b3-4bff-beb1-657b85a520b0
< 38841b70-b255-49fa-ada1-29f76981c8e3
---
> SELECT *
> FROM my_table
> WHERE id IN (
>     '26cf42ef-4dbc-4f09-9a80-354e312d207b',
>     '35ec0072-059a-4fbe-9396-e35533539a79',
>     '6445380c-85ec-4f00-a542-175d7e057d81',
>     'c4b5a912-1f4e-4cc1-836b-7a9989e21033',
>     '1e6807a8-10c7-47b2-8d1a-e0e8b161e0c6',
>     '54a0ca49-274a-4ee0-a276-de678fdda6e8',
>     '0d04dbef-1788-4e79-aab4-442b65e353f8',
>     '3cdcb0f6-eb68-4495-8783-91f8a3d133d0',
>     'd36742bd-70b3-4bff-beb1-657b85a520b0',
>     '38841b70-b255-49fa-ada1-29f76981c8e3'
> )

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 71 remaining solutions by signing in and submitting your own entry
#72 Harrison Zhu / @harrison-zhu_data - Score: 508 - 09/30/25 @ 22:36
Vjjjjjjjjjdi<50-53>SELECT *<CR>FROM my_table<CR>WHERE id IN (<CR>    '26cf42ef-4dbc-4f09-9a80-354e312d207b',<CR>    '35ec0072-059a-4fbe-9396-e35533539a79',<CR>    '6445380c-85ec-4f00-a542-175d7e057d81',<CR>    'c4b5a912-1f4e-4cc1-836b-7a9989e21033',<CR>    '1e6807a8-10c7-47b2-8d1a-e0e8b161e0c6',<CR>    '54a0ca49-274a-4ee0-a276-de678fdda6e8',<CR>    '0d04dbef-1788-4e79-aab4-442b65e353f8',<CR>    '3cdcb0f6-eb68-4495-8783-91f8a3d133d0',<CR>    'd36742bd-70b3-4bff-beb1-657b85a520b0',<CR>    '38841b70-b255-49fa-ada1-29f76981c8e3'<CR>)<Esc>[201~<Esc>kj;wq<CR>k:wq<CR>

0 comments


Created by: @pacuna

72 active golfers, 223 entries

Leaderboard (lowest score wins):
66
#31 - greg-asc / @greg-asc

03/04/2025 at 01:07PM

66
#32 - hiro1234omochi / @hiro1234omochi

05/17/2025 at 01:47AM

66
#33 - winter-loo / @winter-loo

05/30/2025 at 05:45AM

66
#34 - Todd Bryant / @toddbryant

08/14/2025 at 10:16PM

67
#35 - BufferKong / @BufferKong

09/25/2024 at 07:33PM

67
#36 - atlasale / @atlasale

10/02/2024 at 09:50AM

67
#37 - JMTed / @JMTed

10/05/2024 at 03:35PM

67
#38 - romache8 / @romache8

10/08/2024 at 08:37AM

67
#39 - k1mosabe / @k1mosabe

12/03/2024 at 12:12AM

67
#40 - Gigo / @GiggioG

04/02/2025 at 10:17PM

67
#41 - Frederik F / @FrederikFrederiksenMancofi

01/16/2026 at 09:24AM

68
#42 - jonas-grobe / @jonas-grobe

04/16/2025 at 06:57PM

68
#43 - Sjur B. / @Apostrophel

05/24/2025 at 10:29PM

68
#44 - Will Powers / @wpowers42

08/23/2025 at 07:55PM

68
#45 - phaym / @phaym

10/13/2025 at 08:47PM

68
#46 - Rafe Murray / @rafe-murray

01/16/2026 at 08:49AM

69
#47 - Rodi-Janssen / @Rodi-Janssen

11/26/2024 at 02:49PM

69
#48 - Biswajit / @biswajitpatra

12/14/2024 at 03:41AM

69
#49 - Bileam Scheuvens / @bileamScheuvens

09/12/2025 at 02:07PM

70
#50 - mkr3mer / @mkr3mer

05/26/2025 at 04:02PM

70
#51 - wsulcs / @wsulcs

10/19/2025 at 07:54PM

70
#52 - Ashwin Kumar / @MrHaikuSwan

12/21/2025 at 12:46AM

71
#53 - Neix20 / @Neix20

10/01/2024 at 09:41AM

72
#54 - ak@developer / @Ajay-056

09/27/2024 at 06:40AM

73
#55 - nmiller987 / @nmiller987

09/25/2024 at 06:08PM

74
#56 - DayuanX / @DayuanX

10/08/2024 at 10:24AM

74
#57 - Ed Leafe / @EdLeafe

06/26/2025 at 10:38PM

75
#58 - Vitalii Solodilov / @mcdoker18

09/28/2024 at 03:41PM

75
#59 - thedvd98 / @thedvd98

12/21/2024 at 02:03PM

75
#60 - cenan ozen / @cenan

04/05/2025 at 03:18PM