LIVE ON TWITCH: / theprimeagen Get in on Discord: / discord Get in on Twitter: / theprimeagen Got Something For Me to Read or Watch??: / theprimeagenreact
Жүктеу.....
Пікірлер: 106
@NickyTheRook Жыл бұрын
The best part is how he did this macro live first try. Very impressive.
@STatic400911 ай бұрын
Name another IDE that you can be that happy while using it.
@NorgGrimm
5 ай бұрын
It's not an IDE.
@ew2430
5 ай бұрын
@@NorgGrimmcorrect, but the way most people use it, it definitely is. the same way vscode isn’t an IDE but after 20 plugins and config, you have JetBrains Rider.
@TheBusttheboss
5 ай бұрын
Emacs (not an IDE, neither is Vim)
@greyshopleskin2315
4 ай бұрын
@@TheBustthebossemacs is not an IDE, it is a good operating system that lacks a good editor
@reed6514
4 ай бұрын
Sledge hammer is the best editor, but it can only delete.
@NathanHedglin Жыл бұрын
I was there. He did it first try. Blazingly Fast
@feschber
17 күн бұрын
It's true, I was the macro
@alexhiatt337411 ай бұрын
incomprehensible, thank you king
@lazycoder_94 ай бұрын
Whenever I have a bad mood, I watch this for 3-4 times, laugh my ass off and everything is good again
@spicywe1ner Жыл бұрын
And literally the next day. A better macro. This man is unstoppable
@zheil91522 ай бұрын
welcome to vim, where you save so much time with your macros, you immediately lose all that gained time explaining or marveling at your own macro
@no_name4796
Ай бұрын
You wouldn't say you are wasting time when you have an orgasm, would you? Yeah pretty much the same applies here
@joelmassara5087Ай бұрын
Pov: you just discovered fire and are sharing it with the world
@sexyeur11 ай бұрын
Those people who *make* things happen, those that *watch* what happened, and those that *wonder* what happened... Hahaha
@Axlefublr
17 күн бұрын
and here's me, thinking if there's some combination of :norm &| :s I could instead abuse to be this macro
@paulsanchez5030 Жыл бұрын
Is this the doc. disrispect of coding? He celebrate matching patterns as a 360 no scope
@mattmmilli8287
14 күн бұрын
not far off 😂
@luvjeetsingh9487 Жыл бұрын
Please make a video to explain macros in vim
@Tekay37
Жыл бұрын
qq (do the macro) q then 5@q to repeat your macro 5 times.
@ItzAnameOk
11 ай бұрын
:h macro
@fincali197
10 ай бұрын
q to say that you're gonna record a macro, then a key(like w or q) to say that this macro should be named "w"(or "q"), then you record the macro, and when you're done, press q again.
@fincali197
10 ай бұрын
To do the macro, just [count](it's optional)@name_of_the_macro(aka "w" in the example I provided)
@luvjeetsingh9487
10 ай бұрын
@@fincali197 thanx very much but i got it after googling and chatgipty explained it to me
@mathewmorris4 ай бұрын
Prime lookin like a one-eyed fightin Kirby over here \(*\)
@tannerted Жыл бұрын
Love the feeling of my macros working first time. Usually with complex macros like this, I make some stupid mistake and have to do it over a couple times
@ykhatat
5 ай бұрын
You don't need to redo it just edit it.
@Axlefublr
17 күн бұрын
@@ykhatathow would you edit a macro? I know of multiple ways, and none of them feel good enough to use. Maybe I'm missing something
@ZantierTasa
17 күн бұрын
@@Axlefublr The only way I know of is to manually edit the string of keystrokes, which is only good for small, easy fixes. If the macro is in register a, on a new line type "ap to paste the keystrokes, make the edit, then yank it all back into register a with e.g. "ayiW
@Axlefublr
17 күн бұрын
@@ZantierTasa yeahhh this is one of the methods I tried using and disliked. The issue with it is that I need to, on the spot, occupy some sort of space in the file to edit my macro in, probably freaking out the syntax highlighting, lsp, and diagnostics in the process. it feels really messy to do. I could use :new to go edit it in a blank buffer and then close it, but at that point, what am I even doing, right? it feels like a bit more effort than it's usually worth. macros are definitely still really really important, but if I fuck up, the solution is generally messy, which is why I try to solve problems with :norm and :s when I can
@ZantierTasa
17 күн бұрын
@@Axlefublr Yeah, I don't think it's usually worth editing macros like this. I usually just go "oops" and start the macro from the beginning.
@Zzznmop Жыл бұрын
Pass me the macro and give it to me raw
@jaralara64292 ай бұрын
Did I just witness a vim trickshot
@jonopensАй бұрын
The mic pops to the exaltations are the artifacts of joy
@nekoill4 ай бұрын
I love this short so much 😹
@sp3ctum5 ай бұрын
The best part is the expressions on my coworkers' faces when I do this
@maxoumimaro7 ай бұрын
The next step is to do this using two bookmarks so vim in one macro will go back and forth between the pattern matching and the symbol definition and move both bookmarks down one line each time.
@vikingthedude8 ай бұрын
I watched this two months ago thinking this looks too cryptic. Now after using macros for a while i am enlightened
@SoKyryloАй бұрын
the edit is skippy and jittery and hides the action
@francp11 ай бұрын
It's happening!🎉
@ObsidianJai26 күн бұрын
This short singlehandedly made me learn neovim. I had no idea wtf he was talking about and i dont like that lol.
@Mihaugoku4 ай бұрын
that's a Vimgasm if I've ever seen one.
@no_name4796
Ай бұрын
*neovimgasm Neovim > vim
@user-fu4ps9eb2v
15 күн бұрын
vimgasm from macrobation
@sunyfilipАй бұрын
Sometimes is macro really faster but sometimes it would be much faster with simple multicursor (for example like in vscode)....but hey, I am trying similar macros in vim and every time I finish it correctly it is really satisfying ^_^ so I agree it is more fun to do macros :D
@azaleacolburn7 ай бұрын
Holy fuck he did it
@ajzack983Ай бұрын
So quick even the editor couldn't catch it yayayayayaya
@ohmyv3gatron11 ай бұрын
What theme is that? =P
@Temulgeh Жыл бұрын
oh i should have thought about that a few days ago when i was doing something similar
@mascit8 ай бұрын
theprimeablackmagic
@adityakiran29564 ай бұрын
Which language is this and what’s going on in here? Can anybody explain?
@TokyoXtreme
Ай бұрын
I'm guessing it makes sense when you're able to see more of the screen. Don't people preview their own shorts before uploading?
@RamkrishanYT Жыл бұрын
What happened?
@sexyeur
11 ай бұрын
😂
@reed65144 ай бұрын
I'm not sure i save time with macros like these, but i sure do enjoy using them.
@manoharsingh60506 ай бұрын
The truth is if I cannot understand what just happened I probably won’t need it
@ivanheffner2587
24 күн бұрын
… said the caveman to the fighter pilot.
@manoharsingh6050
24 күн бұрын
@@ivanheffner2587yea exactly 😂
@aBradAbroad11 ай бұрын
!brother
@balatries Жыл бұрын
I saw this live
@mo.G_2020
Ай бұрын
A legend here
@crides0 Жыл бұрын
or given the existing enum items, just do a regular expression like :'
@user-fu4ps9eb2v15 күн бұрын
macroburtion
@spikespaz11 ай бұрын
I can do the same thing with a regex replace in VS Code :)
@igorvlasiuk6432
5 ай бұрын
If you are so happy by VSCode why are you you spying on the guy who promotes vim?
@olbluelips
4 ай бұрын
But then you have to learn regex
@brandonfernandez1944 ай бұрын
xD
@Trokkin Жыл бұрын
That got me thinking. I'm just learning vim motions, so I constantly compare them to usual vscode "motions". I did such transformations on daily basis with multiple cursors and toUppercase / toLowercase commands. Vim is powerful with moving around, sure, but is that really the greatest macro? 😮
@justpatrick_
Жыл бұрын
Yeah multi cursors are better
@bursthooverbag10
Жыл бұрын
You can replicate anyrhing you can do with vsc multi cursor in vim. Vsc motions are but a pale imitation
@Trokkin
Жыл бұрын
@@bursthooverbag10 sure except what replicates multi cursor in vim requires 1-2-4 buttons to press per occurrence, which is not zero, which is an W for vsc. And hear me out, moving around is better in vim, that's a bigger W and I'm sticking with it. Just saying, this macro usage is not really impressive as prim makes it sound for me. I want something even juicier to represent vim advantage on text transformation front.
@ardnys35
Жыл бұрын
do you mean the highlighting a word and pressing ctrl+D for creating multiple cursors? that's so nice in VSC. that saved me a TON of time when i was editing plotting functions.
@Trokkin
Жыл бұрын
@@ardnys35 also to select all in a file. And to add one cursor up or down (C and A are short for Ctrl and Alt. Vim's already rubbed into me)
@Jason_Kang Жыл бұрын
First try
@marcialabrahantes33694 ай бұрын
how's this different than multiple cursors in Sublime/VSC
@vaisakhkm783 Жыл бұрын
Actually, i didn't understand what he done there... How word 'return' comes there? okey understand, video cutoff at right, so didn't saw the pasted text and diw
@JMIK1991
Жыл бұрын
He made a makro, chained each event: - Start makro at the text - Copy, Paste, Find "If", new line - pastes aboven line again - replace to copied value, upcases first letter - replaces to copied value - removes extra line - Ends makro Then he pointed at the text return, ran the macro he just made.
@darthcabs7 ай бұрын
I don't see anything happening
@Spongman Жыл бұрын
vim is great! it takes something that would be trivial and intuitive to do in vscode, obfuscates it entirely and makes you feel really smart, witness!
@dima1478
Жыл бұрын
And also do it in a fraction of the time
@_bradleystrider
Жыл бұрын
wait you think recording the exact steps you would normally do is unintuitive in vim?
@kuhluhOG
10 ай бұрын
@@_bradleystrider I think that OP is more saying that 1. vim motions are unintuitive and 2. having basically no visual feedback about what you are recording is unintuitive (tbf, they way this is recorded thanks to YT Shorts limitations is far from ideal here; e.g. where do the word he pastes in come from? ah, outside the screen...)
@webmandmanАй бұрын
i did a better macro today. for reals bro. that one was alright.
@sayChristIsKing Жыл бұрын
people convincing me to keep using vim be like that sometimes, but all I really want is easy debug and an outline tab on my sidebar out of the box, debug is the only thing that gatekeeps me from using vim fr, pure insanity that how many hoops you need to jump thorugh for the only tool that every new programmer actually need, a fucking debugger
@alexhiatt3374
11 ай бұрын
agreed. I love NeoVim for everything else, but I could never get a debugger working. I just jump to CLion with the IdeaVim plugin when I need the debugger.
@smjonas8616
6 ай бұрын
You dont need to use Vim for every programming-related task. Just use the best tool for the job (you dont need to turn Vim into an IDE to benefit from it).
@AgainPsychoX Жыл бұрын
Each time I see Primegen using Neovim I want to learn the thing, but then I realize I do the same thing daily with multi-cursors on VS Code, all with keyboard (of course custom keybindings)
@QckSGaming
11 ай бұрын
Multi-cursor is light-years away from macros but you can get basic stuff done for sure. I was so used to it that I made my own multi-cursor for vim but now never use it
@hil449
6 ай бұрын
Wait, vim doesn't have built-in multicursor?
@darianmorat
5 ай бұрын
@@QckSGaming what are u talking about? To be more specific
@aichrist Жыл бұрын
Honestly, i just prefer typing all that. I can type very fast.
@insertoyouroemail Жыл бұрын
meh... VS Code multicursor editing is much faster.
@evgen4681 Жыл бұрын
randomly generated words with ChatGPT does not called macros (Kappa)
@just_A_doctor11 ай бұрын
Nano -- migraine Emacs -- heading pain Vim -- kill me no need to the pain . Vscode ❤❤❤❤❤❤❤❤❤❤❤
Пікірлер: 106
The best part is how he did this macro live first try. Very impressive.
Name another IDE that you can be that happy while using it.
@NorgGrimm
5 ай бұрын
It's not an IDE.
@ew2430
5 ай бұрын
@@NorgGrimmcorrect, but the way most people use it, it definitely is. the same way vscode isn’t an IDE but after 20 plugins and config, you have JetBrains Rider.
@TheBusttheboss
5 ай бұрын
Emacs (not an IDE, neither is Vim)
@greyshopleskin2315
4 ай бұрын
@@TheBustthebossemacs is not an IDE, it is a good operating system that lacks a good editor
@reed6514
4 ай бұрын
Sledge hammer is the best editor, but it can only delete.
I was there. He did it first try. Blazingly Fast
@feschber
17 күн бұрын
It's true, I was the macro
incomprehensible, thank you king
Whenever I have a bad mood, I watch this for 3-4 times, laugh my ass off and everything is good again
And literally the next day. A better macro. This man is unstoppable
welcome to vim, where you save so much time with your macros, you immediately lose all that gained time explaining or marveling at your own macro
@no_name4796
Ай бұрын
You wouldn't say you are wasting time when you have an orgasm, would you? Yeah pretty much the same applies here
Pov: you just discovered fire and are sharing it with the world
Those people who *make* things happen, those that *watch* what happened, and those that *wonder* what happened... Hahaha
@Axlefublr
17 күн бұрын
and here's me, thinking if there's some combination of :norm &| :s I could instead abuse to be this macro
Is this the doc. disrispect of coding? He celebrate matching patterns as a 360 no scope
@mattmmilli8287
14 күн бұрын
not far off 😂
Please make a video to explain macros in vim
@Tekay37
Жыл бұрын
qq (do the macro) q then 5@q to repeat your macro 5 times.
@ItzAnameOk
11 ай бұрын
:h macro
@fincali197
10 ай бұрын
q to say that you're gonna record a macro, then a key(like w or q) to say that this macro should be named "w"(or "q"), then you record the macro, and when you're done, press q again.
@fincali197
10 ай бұрын
To do the macro, just [count](it's optional)@name_of_the_macro(aka "w" in the example I provided)
@luvjeetsingh9487
10 ай бұрын
@@fincali197 thanx very much but i got it after googling and chatgipty explained it to me
Prime lookin like a one-eyed fightin Kirby over here \(*\)
Love the feeling of my macros working first time. Usually with complex macros like this, I make some stupid mistake and have to do it over a couple times
@ykhatat
5 ай бұрын
You don't need to redo it just edit it.
@Axlefublr
17 күн бұрын
@@ykhatathow would you edit a macro? I know of multiple ways, and none of them feel good enough to use. Maybe I'm missing something
@ZantierTasa
17 күн бұрын
@@Axlefublr The only way I know of is to manually edit the string of keystrokes, which is only good for small, easy fixes. If the macro is in register a, on a new line type "ap to paste the keystrokes, make the edit, then yank it all back into register a with e.g. "ayiW
@Axlefublr
17 күн бұрын
@@ZantierTasa yeahhh this is one of the methods I tried using and disliked. The issue with it is that I need to, on the spot, occupy some sort of space in the file to edit my macro in, probably freaking out the syntax highlighting, lsp, and diagnostics in the process. it feels really messy to do. I could use :new to go edit it in a blank buffer and then close it, but at that point, what am I even doing, right? it feels like a bit more effort than it's usually worth. macros are definitely still really really important, but if I fuck up, the solution is generally messy, which is why I try to solve problems with :norm and :s when I can
@ZantierTasa
17 күн бұрын
@@Axlefublr Yeah, I don't think it's usually worth editing macros like this. I usually just go "oops" and start the macro from the beginning.
Pass me the macro and give it to me raw
Did I just witness a vim trickshot
The mic pops to the exaltations are the artifacts of joy
I love this short so much 😹
The best part is the expressions on my coworkers' faces when I do this
The next step is to do this using two bookmarks so vim in one macro will go back and forth between the pattern matching and the symbol definition and move both bookmarks down one line each time.
I watched this two months ago thinking this looks too cryptic. Now after using macros for a while i am enlightened
the edit is skippy and jittery and hides the action
It's happening!🎉
This short singlehandedly made me learn neovim. I had no idea wtf he was talking about and i dont like that lol.
that's a Vimgasm if I've ever seen one.
@no_name4796
Ай бұрын
*neovimgasm Neovim > vim
@user-fu4ps9eb2v
15 күн бұрын
vimgasm from macrobation
Sometimes is macro really faster but sometimes it would be much faster with simple multicursor (for example like in vscode)....but hey, I am trying similar macros in vim and every time I finish it correctly it is really satisfying ^_^ so I agree it is more fun to do macros :D
Holy fuck he did it
So quick even the editor couldn't catch it yayayayayaya
What theme is that? =P
oh i should have thought about that a few days ago when i was doing something similar
theprimeablackmagic
Which language is this and what’s going on in here? Can anybody explain?
@TokyoXtreme
Ай бұрын
I'm guessing it makes sense when you're able to see more of the screen. Don't people preview their own shorts before uploading?
What happened?
@sexyeur
11 ай бұрын
😂
I'm not sure i save time with macros like these, but i sure do enjoy using them.
The truth is if I cannot understand what just happened I probably won’t need it
@ivanheffner2587
24 күн бұрын
… said the caveman to the fighter pilot.
@manoharsingh6050
24 күн бұрын
@@ivanheffner2587yea exactly 😂
!brother
I saw this live
@mo.G_2020
Ай бұрын
A legend here
or given the existing enum items, just do a regular expression like :'
macroburtion
I can do the same thing with a regex replace in VS Code :)
@igorvlasiuk6432
5 ай бұрын
If you are so happy by VSCode why are you you spying on the guy who promotes vim?
@olbluelips
4 ай бұрын
But then you have to learn regex
xD
That got me thinking. I'm just learning vim motions, so I constantly compare them to usual vscode "motions". I did such transformations on daily basis with multiple cursors and toUppercase / toLowercase commands. Vim is powerful with moving around, sure, but is that really the greatest macro? 😮
@justpatrick_
Жыл бұрын
Yeah multi cursors are better
@bursthooverbag10
Жыл бұрын
You can replicate anyrhing you can do with vsc multi cursor in vim. Vsc motions are but a pale imitation
@Trokkin
Жыл бұрын
@@bursthooverbag10 sure except what replicates multi cursor in vim requires 1-2-4 buttons to press per occurrence, which is not zero, which is an W for vsc. And hear me out, moving around is better in vim, that's a bigger W and I'm sticking with it. Just saying, this macro usage is not really impressive as prim makes it sound for me. I want something even juicier to represent vim advantage on text transformation front.
@ardnys35
Жыл бұрын
do you mean the highlighting a word and pressing ctrl+D for creating multiple cursors? that's so nice in VSC. that saved me a TON of time when i was editing plotting functions.
@Trokkin
Жыл бұрын
@@ardnys35 also to select all in a file. And to add one cursor up or down (C and A are short for Ctrl and Alt. Vim's already rubbed into me)
First try
how's this different than multiple cursors in Sublime/VSC
Actually, i didn't understand what he done there... How word 'return' comes there? okey understand, video cutoff at right, so didn't saw the pasted text and diw
@JMIK1991
Жыл бұрын
He made a makro, chained each event: - Start makro at the text - Copy, Paste, Find "If", new line - pastes aboven line again - replace to copied value, upcases first letter - replaces to copied value - removes extra line - Ends makro Then he pointed at the text return, ran the macro he just made.
I don't see anything happening
vim is great! it takes something that would be trivial and intuitive to do in vscode, obfuscates it entirely and makes you feel really smart, witness!
@dima1478
Жыл бұрын
And also do it in a fraction of the time
@_bradleystrider
Жыл бұрын
wait you think recording the exact steps you would normally do is unintuitive in vim?
@kuhluhOG
10 ай бұрын
@@_bradleystrider I think that OP is more saying that 1. vim motions are unintuitive and 2. having basically no visual feedback about what you are recording is unintuitive (tbf, they way this is recorded thanks to YT Shorts limitations is far from ideal here; e.g. where do the word he pastes in come from? ah, outside the screen...)
i did a better macro today. for reals bro. that one was alright.
people convincing me to keep using vim be like that sometimes, but all I really want is easy debug and an outline tab on my sidebar out of the box, debug is the only thing that gatekeeps me from using vim fr, pure insanity that how many hoops you need to jump thorugh for the only tool that every new programmer actually need, a fucking debugger
@alexhiatt3374
11 ай бұрын
agreed. I love NeoVim for everything else, but I could never get a debugger working. I just jump to CLion with the IdeaVim plugin when I need the debugger.
@smjonas8616
6 ай бұрын
You dont need to use Vim for every programming-related task. Just use the best tool for the job (you dont need to turn Vim into an IDE to benefit from it).
Each time I see Primegen using Neovim I want to learn the thing, but then I realize I do the same thing daily with multi-cursors on VS Code, all with keyboard (of course custom keybindings)
@QckSGaming
11 ай бұрын
Multi-cursor is light-years away from macros but you can get basic stuff done for sure. I was so used to it that I made my own multi-cursor for vim but now never use it
@hil449
6 ай бұрын
Wait, vim doesn't have built-in multicursor?
@darianmorat
5 ай бұрын
@@QckSGaming what are u talking about? To be more specific
Honestly, i just prefer typing all that. I can type very fast.
meh... VS Code multicursor editing is much faster.
randomly generated words with ChatGPT does not called macros (Kappa)
Nano -- migraine Emacs -- heading pain Vim -- kill me no need to the pain . Vscode ❤❤❤❤❤❤❤❤❤❤❤