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 78 remaining solutions by signing in and submitting your own entry
#79 Adelgeda / @LKoczProgramming - Score: 87 - 01/23/26 @ 14:35
:s/local/int/g<CR>2G:%s/"//g<CR>2Gqadt,i35958307327<Esc><Down>0wq@a@a<Up>yt,<Down>d$<Up><Right>d<Esc><Esc><Esc><CR><Up><Right>yt,<Down>pa<BS>9<Up><BS>8<Up><Esc>:wq<CR>

0 comments


Created by: @stoyandimov

79 active golfers, 336 entries

Leaderboard (lowest score wins):
24
#31 - Reese / @figadore

09/06/2024 at 05:35PM

24
#32 - donghwanjin / @donghwanjin

12/06/2025 at 01:20AM

24
#33 - curbe454 / @curbe454

03/10/2026 at 10:36AM

25
#34 - penguinwithpants / @penguinwithpants

09/04/2024 at 02:08PM

25
#35 - rhasarub / @rhasarub

09/05/2024 at 08:13AM

25
#36 - Pablo Acuna / @pacuna

09/06/2024 at 01:55AM

25
#37 - no-yan / @no-yan

09/06/2024 at 02:29PM

25
#38 - x03n046 / @x03n046

09/19/2024 at 06:38AM

25
#39 - Chloe Brett / @chloebrett

11/10/2024 at 09:40AM

25
#40 - phaym / @phaym

10/13/2025 at 06:53PM

26
#41 - Casey O'Donnell / @CaseyOD15519082

09/16/2024 at 04:23PM

26
#42 - IroncladDev / @IroncladDev

09/17/2024 at 08:43PM

26
#43 - theyta-ta / @theyta-ta

03/22/2025 at 10:31PM

26
#44 - gwrhyr / @gwrhyr

02/20/2026 at 05:33PM

27
#45 - Stoyan Dimov / @stoyandimov

09/04/2024 at 09:33AM

27
#46 - Anton / @Sobes76rus

09/04/2024 at 06:56PM

27
#47 - tobi256 / @tobi256

09/13/2024 at 11:41PM

27
#48 - Anton Strand / @AntonStrand

10/31/2024 at 03:59PM

27
#49 - Victor Pfautz / @vpfautz

01/23/2025 at 06:06PM

27
#50 - jaunxter / @jaunxter

04/01/2025 at 04:04AM

27
#51 - Sjur B. / @Apostrophel

05/21/2025 at 10:40PM

28
#52 - Diwakar Singh Parmar / @parmardiwakar150

09/07/2024 at 05:42AM

28
#53 - _3tHeR_ / @3ther-joyboy

11/10/2024 at 02:42PM

28
#54 - Brian Curless / @bwcurless

02/12/2025 at 06:29PM

28
#55 - Zsanett Ferenczi / @ferenczizsani

04/10/2025 at 10:08AM

28
#56 - Frederik F / @FrederikFrederiksenMancofi

01/20/2026 at 09:03AM

28
#57 - Jean-Valery / @Jvaxx

03/26/2026 at 02:16PM

29
#58 - Ethan Rietz / @erietz

08/05/2025 at 07:50PM

30
#59 - Backwater1 / @Backwater1

02/21/2025 at 10:34PM

31
#60 - Will Powers / @wpowers42

08/18/2025 at 09:45AM