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

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

45 active golfers, 168 entries

Solutions by @insomnight:
22
#10 - got_windy / @insomnight

10/23/2024 at 12:32AM

23
#>18 - got_windy / @insomnight

10/23/2024 at 12:31AM

24
#>21 - got_windy / @insomnight

10/23/2024 at 12:29AM

25
#>26 - got_windy / @insomnight

10/23/2024 at 12:28AM

26
#>29 - got_windy / @insomnight

10/23/2024 at 12:25AM

27
#>32 - got_windy / @insomnight

10/23/2024 at 12:24AM

28
#>34 - got_windy / @insomnight

10/23/2024 at 12:22AM

32
#>36 - got_windy / @insomnight

10/23/2024 at 12:17AM

33
#>37 - got_windy / @insomnight

10/23/2024 at 12:13AM