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 563368fc3a2bb61edd0128f5

Manual SQL

Change select and insert queries to simulate inserting a new record.

Start file
select * from service where user_id = '908' and service_id = (233);
select * from discounts where user_id = '908';

insert into discounts values (null, 0, 908, 1, 233, 'STI-0128862-3', '2015-11-20', '2017-11-20', 0, 900, null, now());
End file
select * from service where user_id = '909' and service_id = (322);
select * from discounts where user_id = '909';

insert into discounts values (null, 0, 909, 2, 322, 'STI-0132580-2', '2015-11-01', '2018-10-01', 0, 136.8, null, now());

View Diff

1,2c1,2
< select * from service where user_id = '908' and service_id = (233);
< select * from discounts where user_id = '908';
---
> select * from service where user_id = '909' and service_id = (322);
> select * from discounts where user_id = '909';
4c4
< insert into discounts values (null, 0, 908, 1, 233, 'STI-0128862-3', '2015-11-20', '2017-11-20', 0, 900, null, now());
---
> insert into discounts values (null, 0, 909, 2, 322, 'STI-0132580-2', '2015-11-01', '2018-10-01', 0, 136.8, null, now());

Solutions by @Y9eKW0qxvsdIN6W:

Unlock 16 remaining solutions by signing in and submitting your own entry
Created by: @chuckclayton_t1

44 active golfers, 114 entries

Solutions by @Y9eKW0qxvsdIN6W:
52
#8 - 조성식 / @Y9eKW0qxvsdIN6W

03/26/2021 at 03:57AM

53
#>10 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:56AM

54
#>11 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:49AM

56
#>14 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:45AM

57
#>15 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:41AM

58
#>17 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:39AM

59
#>19 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:37AM

60
#>20 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:35AM

63
#>20 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:34AM

65
#>24 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:32AM

70
#>27 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:30AM

73
#>29 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:26AM

75
#>33 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:24AM

78
#>35 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:06AM

86
#>41 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 08:00AM

98
#>42 - 조성식 / @Y9eKW0qxvsdIN6W

03/25/2021 at 07:32AM