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

citizen_hacks_2019_part9

For the Citizen Hacks 2019 Vim competition

Start file
// Part 8: The Welcome Party

const http = require('http');

const hostname = 'csi.annex';
const port = 0906;

const server = http.createServer((res, req) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
let welcome = `
Thanks for playing
`;
  res.end(welcome);
});

server.listen(port, hostname, () => {
  console.log(`Nerding out at ${hostname} on ${port}!`);
});
End file
// Part 9: The Welcome Party

const http = require('http');

const hostname = 'csi.annex';
const port = 0906;

const server = http.createServer((req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
let welcome = `
000000000000000000000000
0  Thanks for playing  0
000123456789987654321000
`;
  res.end(welcome);
});

server.listen(port, hostname, () => {
  console.log(`Nerding out at ${hostname} on ${port}!`);
});

View Diff

1c1
< // Part 9: The Welcome Party
---
> // Part 8: The Welcome Party
8c8
< const server = http.createServer((req, res) => {
---
> const server = http.createServer((res, req) => {
12,14c12
< 000000000000000000000000
< 0  Thanks for playing  0
< 000123456789987654321000
---
> Thanks for playing

Solutions by @tanzeelkazi:

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

11 active golfers, 32 entries

Solutions by @tanzeelkazi:
48
#1 - Tanzeel Kazi / @tanzeelkazi

10/13/2021 at 08:58PM

49
#>6 - Tanzeel Kazi / @tanzeelkazi

10/13/2021 at 08:53PM

51
#>7 - Tanzeel Kazi / @tanzeelkazi

10/13/2021 at 08:52PM

55
#>8 - Tanzeel Kazi / @tanzeelkazi

08/22/2020 at 09:52PM