r/vim • u/caspervonb • Aug 15 '20
Vim Hacking Session - Early Days of Implementing the WebAssembly System Interface for Deno
https://www.youtube.com/watch?v=H_PEvVZTKzA3
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
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
Aug 16 '20
[removed] — view removed comment
2
u/loveofcode Aug 16 '20 edited Aug 16 '20
oh, that was sneaky, 🤭 I know about
gandctrl-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
columncommand. 🕺
12
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 cip3
2
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.
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.