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

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

56 active golfers, 237 entries

Solutions by @jaunxter:
27
#39 - jaunxter / @jaunxter

04/01/2025 at 04:04AM

28
#>42 - jaunxter / @jaunxter

04/01/2025 at 04:00AM

29
#>43 - jaunxter / @jaunxter

04/01/2025 at 03:52AM

30
#>44 - jaunxter / @jaunxter

04/01/2025 at 03:47AM

32
#>46 - jaunxter / @jaunxter

04/01/2025 at 03:38AM

38
#>50 - jaunxter / @jaunxter

04/01/2025 at 03:36AM

52
#>54 - jaunxter / @jaunxter

04/01/2025 at 03:34AM

88
#>56 - jaunxter / @jaunxter

04/01/2025 at 03:30AM