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

Search different SQL column with similar where clause

Replace a column in the where clause and convert all numbers from text to numeric, by replacing the leading 0 with the code 359.

Start file
SELECT * FROM numbers WHERE local_number IN (
       
"058307327",
       
"058307328",
       
"058307329"
)
End file
SELECT * FROM numbers WHERE int_number IN (
       
35958307327,
       
35958307328,
       
35958307329
)

View Diff

1,4c1,4
< SELECT * FROM numbers WHERE local_number IN (
<       "058307327",
<       "058307328",
<       "058307329"
---
> SELECT * FROM numbers WHERE int_number IN (
>       35958307327,
>       35958307328,
>       35958307329

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 58 remaining solutions by signing in and submitting your own entry
#59 Badita Marin-Georgian / @GeorgianBadita - Score: 68 - 11/19/24 @ 23:04
:<Up><Up><Up><Up>%s/:<BS>"0\(\d\!<BS>+\):<BS>"/359\1)<BS>/g<CR>:/_<CR>i<BS><Esc>nnNNnnnis<BS><BS><BS><BS><BS><BS>int<Esc>:w<CR>:q<CR>

0 comments


Created by: @stoyandimov

59 active golfers, 258 entries

Leaderboard (lowest score wins):
25
#31 - x03n046 / @x03n046

09/19/2024 at 06:38AM

25
#32 - Chloe Brett / @chloebrett

11/10/2024 at 09:40AM

26
#33 - Casey O'Donnell / @CaseyOD15519082

09/16/2024 at 04:23PM

26
#34 - IroncladDev / @IroncladDev

09/17/2024 at 08:43PM

26
#35 - theyta-ta / @theyta-ta

03/22/2025 at 10:31PM

27
#36 - Stoyan Dimov / @stoyandimov

09/04/2024 at 09:33AM

27
#37 - Anton / @Sobes76rus

09/04/2024 at 06:56PM

27
#38 - tobi256 / @tobi256

09/13/2024 at 11:41PM

27
#39 - Anton Strand / @AntonStrand

10/31/2024 at 03:59PM

27
#40 - Victor Pfautz / @vpfautz

01/23/2025 at 06:06PM

27
#41 - jaunxter / @jaunxter

04/01/2025 at 04:04AM

27
#42 - Sjur B. / @Apostrophel

05/21/2025 at 10:40PM

28
#43 - Diwakar Singh Parmar / @parmardiwakar150

09/07/2024 at 05:42AM

28
#44 - _3tHeR_ / @3ther-joyboy

11/10/2024 at 02:42PM

28
#45 - Brian Curless / @bwcurless

02/12/2025 at 06:29PM

28
#46 - Zsanett Ferenczi / @ferenczizsani

04/10/2025 at 10:08AM

30
#47 - Backwater1 / @Backwater1

02/21/2025 at 10:34PM

32
#48 - fenec / @fenec

09/21/2024 at 04:38PM

32
#49 - SRINIVASU SALADI / @SRINIVASUS22587

03/28/2025 at 07:32AM

33
#50 - Elliot Schemmel / @regulated

10/01/2024 at 07:39PM

33
#51 - Alex Lewin / @_AlexLewin

10/26/2024 at 05:25PM

35
#52 - joachimnielandt / @joachimnielandt

09/20/2024 at 11:42AM

38
#53 - Nick Glauber / @NickPancakes

09/06/2024 at 06:17PM

38
#54 - 88Michael88 / @88Michael88

05/06/2025 at 12:57PM

39
#55 - mlasal2 / @mlasal2

09/10/2024 at 12:19PM

42
#56 - Davida Berto / @davida929

09/13/2024 at 01:16AM

44
#57 - jaccty / @jaccty

09/10/2024 at 12:04PM

58
#58 - M S Dheeraj Murthy / @Dheeraj-Murthy

09/13/2024 at 01:26PM

68
#59 - Badita Marin-Georgian / @GeorgianBadita

11/19/2024 at 11:04PM