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 16 remaining solutions by signing in and submitting your own entry
#17 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

17 active golfers, 54 entries

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

09/09/2019 at 05:23PM

52
#2 - Tanzeel Kazi / @tanzeelkazi

08/26/2020 at 04:50PM

52
#3 - unchi / @unchi10723002

05/09/2022 at 03:54AM

52
#4 - Aly Thobani / @alythobani

05/30/2024 at 09:12PM

52
#5 - Peppa Pig / @PeppaPigSg

07/02/2024 at 07:01AM

52
#6 - nickGPT / @nickandbro

08/24/2024 at 02:19PM

54
#7 - Peter Pandorum / @PeterPandorum

08/09/2021 at 10:10AM

55
#8 - Saki Gw / @Sakigw

09/09/2019 at 07:51AM

55
#9 - "Smylers" / @Smylers2

09/09/2019 at 09:16AM

55
#10 - Victor / @victor_rma

04/25/2020 at 03:52PM

56
#11 - Desentcare / @ashuyali

08/25/2022 at 09:59AM

58
#12 - Brandon / @Brandon10678836

08/31/2022 at 03:36PM

62
#13 - Sammit / @somemeatjain

02/06/2022 at 12:32PM

63
#14 - James / @Dronak

10/13/2023 at 03:54PM

65
#15 - J̻̕ͅo̠̻̘h̼̖n̙̩̝͕ D̹̗̗͝oe̶̱̥͙ / @JohnJDoe2

09/10/2019 at 06:25AM

65
#16 - Alex Schultz / @Pumpkinhead002

10/16/2019 at 04:56PM

123
#17 - Chen / @Chen92576915

09/08/2019 at 01:40PM