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 by @GavinKoeng:

Unlock 10 remaining solutions by signing in and submitting your own entry
Created by: @stoyandimov

74 active golfers, 322 entries

Solutions by @GavinKoeng:
22
#18 - Gavin / @GavinKoeng

12/07/2025 at 02:41PM

23
#>28 - Gavin / @GavinKoeng

12/07/2025 at 02:37PM

24
#>31 - Gavin / @GavinKoeng

12/07/2025 at 02:36PM

25
#>38 - Gavin / @GavinKoeng

12/07/2025 at 02:35PM

26
#>41 - Gavin / @GavinKoeng

12/07/2025 at 02:33PM

27
#>49 - Gavin / @GavinKoeng

12/07/2025 at 02:31PM

28
#>53 - Gavin / @GavinKoeng

12/07/2025 at 02:28PM

29
#>55 - Gavin / @GavinKoeng

12/07/2025 at 02:07PM

30
#>56 - Gavin / @GavinKoeng

12/07/2025 at 02:05PM

59
#>72 - Gavin / @GavinKoeng

12/07/2025 at 01:09PM