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

citizen_hacks_2019_part4

For the Citizen Hacks 2019 Vim competition

Start file
// Part 4: Contacting Sponsors

const request = require('request');

// Talking to sponsors
let request_sponsorship = (company_name) => {
  // remove
  request(company_name + 'sponsorship_emails', (err, res, reply_body) => {
  // remove
    if(response.statusCode != 200){
  // remove
      console.log(`${company_name} couldn't sponsor us with error:`);
  // remove
      console.log(err);
  // remove
      return;
  // remove
    }
  // remove
    if(details_fuzzy(reply_body)){
  // remove
      team.coordinate_specifics();
  // remove
    }
  // remove
  });
  // remove
};

let details_blurry = (reply) => {
  if(reply.sponsorship_tier == null or reply.reply_contract == 'not_signed' or reply.deliverables = undefined){
    return true;
  }
  return false;
}
End file
// Part 4: Contacting Sponsors

const request = require('request');

// Talking to sponsors
let request_sponsorship = (company_name) => {
  request(company_name + 'sponsorship_emails', (err, res, reply_body) => {
    if(response.statusCode != 200){
      console.log(`${company_name} couldn't sponsor us with error:`);
      console.log(err);
      return;
    }
    if(details_fuzzy(reply_body)){
      team.coordinate_specifics();
    }
  });
};

let details_fuzzy = (reply) => {
  if(reply.sponsorship_tier === null or
     reply.reply_contract === 'not_signed' or
     reply.deliverables === undefined){
    return true;
  }
  return false;
}

View Diff

6a7
>   // remove
7a9
>   // remove
8a11
>   // remove
9a13
>   // remove
10a15
>   // remove
11a17
>   // remove
12a19
>   // remove
13a21
>   // remove
14a23
>   // remove
15a25
>   // remove
16a27
>   // remove
19,22c30,31
< let details_fuzzy = (reply) => {
<   if(reply.sponsorship_tier === null or
<      reply.reply_contract === 'not_signed' or
<      reply.deliverables === undefined){
---
> let details_blurry = (reply) => {
>   if(reply.sponsorship_tier == null or reply.reply_contract == 'not_signed' or reply.deliverables = undefined){

Solutions by @Sakigw:

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

6 active golfers, 7 entries

Solutions by @Sakigw:
41
#4 - Saki Gw / @Sakigw

09/09/2019 at 02:39PM