r/vim • • Aug 15 '20

Vim Hacking Session - Early Days of Implementing the WebAssembly System Interface for Deno

https://www.youtube.com/watch?v=H_PEvVZTKzA
63 Upvotes

16 comments sorted by

4

u/[deleted] Aug 16 '20 edited Aug 16 '20

is this normal speed?

Edit: no, it's x2 (read from youtube video description)

Edit2: I'm gona watch at 0.5 speed haha. Curious.

3

u/QAFY Aug 18 '20

Love this. We use vim so differently, and that's the beauty of it.

2

u/haikusbot Aug 18 '20

Love this. we use vim

So differently, and that's

The beauty of it.

- QAFY


I detect haikus. Sometimes, successfully. | Learn more about me

2

u/virtualworker Aug 16 '20

:!column -t What wizardry is this? Tabular?

2

u/-romainl- The Patient Vimmer Aug 16 '20

It's called Unix.

4

u/virtualworker Aug 16 '20

So it's shell and not tabular. Thanks

1

u/loveofcode Aug 16 '20

Okay, I'm about at the middle, how are you inserting values on https://youtu.be/H_PEvVZTKzA?t=97

Still need to finish the whole video, but wow, you know your regex!

1

u/[deleted] Aug 16 '20

[removed] — view removed comment

2

u/loveofcode Aug 16 '20 edited Aug 16 '20

oh, that was sneaky, 🤭 I know about g and ctrl-a. (:h g_ctrl-a)

I thought you magically pulled these values out of thin air. I rewatched the video and saw that the numbers were indeed in ascending order.

Maybe at 1:53 My brain immediately said these numbers were not ascending order, since it went back to zero.

Anyway, it was fun watching it. I use EasyAlign for aligning stuff. But TIL there's a column command. 🕺

1

u/vim-help-bot Aug 16 '20

Help pages for:


`:(h|help) <query>` | about | mistake?

12

u/[deleted] Aug 15 '20 edited Aug 15 '20

[removed] — view removed comment

11

u/-romainl- The Patient Vimmer Aug 16 '20

That was very enjoyable at half-speed. Consider submitting it to r/watchpeoplevim.

Highlights:

  • use of the command-line window

  • seamless integration of external commands

  • more command-line mode than normal mode

  • macro galore

Also, you spend a lot of time reducing uneven blocks of empty lines to one line by hand. Here is how to do it with less effort:

:g/^$/norm cip

3

u/boomskats Aug 16 '20

the real lpt

2

u/[deleted] Aug 19 '20

:g/$/norm cip

Thanks for this. I do the same as OP for removing empty lines, so this will come in handy.