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):
32
#61 - fenec / @fenec

09/21/2024 at 04:38PM

32
#62 - SRINIVASU SALADI / @SRINIVASUS22587

03/28/2025 at 07:32AM

32
#63 - JettMingin / @JettMingin

10/07/2025 at 01:13AM

32
#64 - Dani Bengl / @cb341

12/22/2025 at 09:58PM

32
#65 - Nıklas Rıeken / @ttnick

04/10/2026 at 10:56AM

33
#66 - Elliot Schemmel / @regulated

10/01/2024 at 07:39PM

33
#67 - Alex Lewin / @_AlexLewin

10/26/2024 at 05:25PM

34
#68 - Thomas / @thomaschr-dk

04/04/2026 at 08:59AM

35
#69 - joachimnielandt / @joachimnielandt

09/20/2024 at 11:42AM

35
#70 - Autistic-Cookie / @Autistic-Cookie

08/27/2025 at 10:19PM

38
#71 - Nick Glauber / @NickPancakes

09/06/2024 at 06:17PM

38
#72 - 88Michael88 / @88Michael88

05/06/2025 at 12:57PM

39
#73 - mlasal2 / @mlasal2

09/10/2024 at 12:19PM

39
#74 - Stefano Bertoli / @elkiwy

02/09/2026 at 10:29AM

42
#75 - Davida Berto / @davida929

09/13/2024 at 01:16AM

44
#76 - jaccty / @jaccty

09/10/2024 at 12:04PM

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

09/13/2024 at 01:26PM

68
#78 - Badita Marin-Georgian / @GeorgianBadita

11/19/2024 at 11:04PM

87
#79 - Adelgeda / @LKoczProgramming

01/23/2026 at 02:35PM