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 5d745e309a72d6000c5eb78e

citizen_hacks_2019_part2

For the Citizen Hacks 2019 Vim competition

Start file
// Part 2: Assembling the Team

// assembling friends
let new_members = ['Daniel', 'Curtis', 'Michael']
add_members(group, new_members)

let fs = require('fs')
let october_diary = JSON.parse(fs.readFileSync('October_2019.json', 'utf8'))

october_diary['school'] = True
october_diary['free_time'] = 'rip'
october_diary['new_friends'] = ['Adam', 'Ahmed', 'Ethan', 'Hrithvik', 'Manvi', 'Sherwin', 'Atif', 'Nick', 'Audrey', 'Mirjana']
add_members(group, october_diary.new_friends)

let team = new CitizenHacks(group)
team.publish_website()
End file
// Part 2: Assembling the Team

// Assembling Friends
let new_members = ['Daniel', 'Curtis', 'Michael', 'Audrey', 'Mirjana'];
add_members(group, new_members);

let fs = require('fs');
let october = JSON.parse(fs.readFileSync('October_2019.json', 'utf8'));

october['school'] = true;
october['free_time'] = 'rip';
october['new_friends'] = ['Adam', 'Ahmed', 'Ethan', 'Hrithvik', 'Manvi', 'Sherwin', 'Atif', 'Nick'];
add_members(group, october.new_friends);

let team = new CitizenHacks(group);
team.publish_website();

View Diff

3,5c3,5
< // Assembling Friends
< let new_members = ['Daniel', 'Curtis', 'Michael', 'Audrey', 'Mirjana'];
< add_members(group, new_members);
---
> // assembling friends
> let new_members = ['Daniel', 'Curtis', 'Michael']
> add_members(group, new_members)
7,8c7,8
< let fs = require('fs');
< let october = JSON.parse(fs.readFileSync('October_2019.json', 'utf8'));
---
> let fs = require('fs')
> let october_diary = JSON.parse(fs.readFileSync('October_2019.json', 'utf8'))
10,13c10,13
< october['school'] = true;
< october['free_time'] = 'rip';
< october['new_friends'] = ['Adam', 'Ahmed', 'Ethan', 'Hrithvik', 'Manvi', 'Sherwin', 'Atif', 'Nick'];
< add_members(group, october.new_friends);
---
> october_diary['school'] = True
> october_diary['free_time'] = 'rip'
> october_diary['new_friends'] = ['Adam', 'Ahmed', 'Ethan', 'Hrithvik', 'Manvi', 'Sherwin', 'Atif', 'Nick', 'Audrey', 'Mirjana']
> add_members(group, october_diary.new_friends)
15,16c15,16
< let team = new CitizenHacks(group);
< team.publish_website();
\ No newline at end of file
---
> let team = new CitizenHacks(group)
> team.publish_website()
\ No newline at end of file

Solutions by @tanzeelkazi:

Unlock 4 remaining solutions by signing in and submitting your own entry
Created by: @curtischong5

10 active golfers, 25 entries

Solutions by @tanzeelkazi:
41
#2 - Tanzeel Kazi / @tanzeelkazi

08/26/2020 at 05:19PM

43
#>8 - Tanzeel Kazi / @tanzeelkazi

08/26/2020 at 05:13PM

43
#>8 - Tanzeel Kazi / @tanzeelkazi

08/26/2020 at 05:16PM

45
#>9 - Tanzeel Kazi / @tanzeelkazi

08/26/2020 at 05:06PM