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 @dlum20:

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

60 active golfers, 265 entries

Solutions by @dlum20:
22
#8 - dlum20 / @dlum20

10/10/2024 at 01:37AM

23
#>23 - dlum20 / @dlum20

10/10/2024 at 01:36AM

24
#>27 - dlum20 / @dlum20

10/10/2024 at 01:35AM

25
#>32 - dlum20 / @dlum20

10/10/2024 at 01:33AM

26
#>35 - dlum20 / @dlum20

10/10/2024 at 01:32AM

28
#>44 - dlum20 / @dlum20

10/10/2024 at 01:31AM

29
#>47 - dlum20 / @dlum20

10/10/2024 at 01:30AM

30
#>47 - dlum20 / @dlum20

10/10/2024 at 01:25AM

31
#>48 - dlum20 / @dlum20

10/10/2024 at 01:24AM

33
#>51 - dlum20 / @dlum20

10/10/2024 at 01:20AM

40
#>56 - dlum20 / @dlum20

10/10/2024 at 01:19AM