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

citizen_hacks_2019_part1

For the Citizen Hacks 2019 Vim competition

Start file
// Part 1: The Idea

/* The following challenges will cover how Citizen Hacks was created. Good Luck!
Part 1:  The Idea.
Part 2:  Assembling the Team.
Part 3:  Finding Sponsors.
Part 4:  Contacting Sponsors.
Part 5:  Bad News.
Part 6:  A New Hope.
Part 7:  Applications.
Part 8:  Handling Logistics.
Part 9:  The Welcome Party.
*/

const YEAR = 2018

let group = ['Marcel','Mio','Benn']

let add_member = (group, name) => {
  group.push(name);
  console.log(`Added ${name}`);
};

let add_members = (group, names) => {
  names.forEach((name) => {
    add_member(group, name);
  });
};
End file
// Part 1: The Idea

/* The following challenges will cover how Citizen Hacks was created. Good Luck!
CH Part 1: The Idea
CH Part 2: Assembling the Team
CH Part 3: Finding Sponsors
CH Part 4: Contacting Sponsors
CH Part 5: Bad News
CH Part 6: A New Hope
CH Part 7: Applications
CH Part 8: Handling Logistics
CH Part 9: The Welcome Party
*/

const YEAR = 2018;
const MONTH = 'June';

let group = ['Marcel', 'Mio', 'Benn'];

let add_member = (group, name) => {
  group.push(name);
  console.log(`Added ${name}`);
};

let add_members = (group, names) => {
  names.forEach((name) => {
    add_member(group, name);
  });
};

View Diff

4,12c4,12
< CH Part 1: The Idea
< CH Part 2: Assembling the Team
< CH Part 3: Finding Sponsors
< CH Part 4: Contacting Sponsors
< CH Part 5: Bad News
< CH Part 6: A New Hope
< CH Part 7: Applications
< CH Part 8: Handling Logistics
< CH Part 9: The Welcome Party
---
> Part 1:  The Idea.
> Part 2:  Assembling the Team.
> Part 3:  Finding Sponsors.
> Part 4:  Contacting Sponsors.
> Part 5:  Bad News.
> Part 6:  A New Hope.
> Part 7:  Applications.
> Part 8:  Handling Logistics.
> Part 9:  The Welcome Party.
15,16c15
< const YEAR = 2018;
< const MONTH = 'June';
---
> const YEAR = 2018
18c17
< let group = ['Marcel', 'Mio', 'Benn'];
---
> let group = ['Marcel','Mio','Benn']

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 4 remaining solutions by signing in and submitting your own entry
#5 Chen / @Chen92576915 - Score: 123 - 09/08/19 @ 13:40
:4<CR><C-V>8jICH <Esc>eeeeli<Del><Down><Del><Down><Del><Down><Del><Down><Del><Down><Del><Down><Del><Down><Del><Down><Del><Esc>:15<CR>oconst MONTH = 'June';<Up>;<CR><BS><Down><Down><Esc>jeeeeeei <Esc>eeei <Esc>A;<Up><Up><Up><Up><Up><Up><BS><Esc>klldwkdwkdwkdwk$dwkdwk$dwkDZZ

0 comments


Created by: @curtischong5

5 active golfers, 8 entries

Leaderboard (lowest score wins):
52
#1 - John Braxler / @braxler

09/09/2019 at 05:23PM

55
#2 - Saki Gw / @Sakigw

09/09/2019 at 07:51AM

55
#3 - Smylers / @Smylers2

09/09/2019 at 09:16AM

65
#4 - John / @JohnJDoe2

09/10/2019 at 06:25AM

123
#5 - Chen / @Chen92576915

09/08/2019 at 01:40PM