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 @Ajay-056:

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

35 active golfers, 105 entries

Solutions by @Ajay-056:
23
#10 - ak@developer / @Ajay-056

09/08/2024 at 08:19AM

24
#>16 - ak@developer / @Ajay-056

09/08/2024 at 08:16AM

25
#>20 - ak@developer / @Ajay-056

09/08/2024 at 08:13AM

27
#>25 - ak@developer / @Ajay-056

09/08/2024 at 07:25AM

28
#>27 - ak@developer / @Ajay-056

09/08/2024 at 07:00AM

31
#>27 - ak@developer / @Ajay-056

09/08/2024 at 06:41AM