 What is Q doing, Vim? Well, it's complicated, but it's going to record macros. And you're gonna love it. Hey, what's up? I'm Chan Tastic, and today we are doing day Q in our journey through Vim, A through Z, just attacking every letter. Today is Q. It's a crazy time right now. Like right now, like the world is freezing. We actually got rain in California. You know things are messed up when like we get rain. But that's inconsequential. Today we're talking about Q. And Q is a, it lets you record your own macros, your own sets of commands. Now you can do this by recording things that you regularly need to various keys, or you can just kind of use them to record, like as you need them ad hoc repeated commands. So I'm gonna show you how to use them. Let's open up Vim, and we're going to open the quick brown text file. And I'm gonna use my arrows and just navigate all the way to the end here. Now, let's say I needed to delete dog from all of these. I could do DE, delete dog, go down DE to the end of the word, down, do that over and over and over again. Now it's not particularly efficient. And there's a way that we can make this into a macro using Q. So I'm gonna demonstrate that now. When you type Q, I typed Q, you need to follow it with any number or letter, uppercase or lowercase. That letter is going to be where that macro is recorded to. So if I hit A now, we can see in this bottom corner, we're in recording mode and we're restoring it in register A for our macro system. To get out of it, I hit Q again. So I didn't make any motions, but that's how you do it. So I could do QB, record to that, B register and hit Q when I'm done recording. A lot of times when people are just recording one off ad hoc macros like I need right now, they'll just do QQ because it's the fastest. So Q, and I kind of think of that as quick. So I'm doing a quick macro and that's what Q is for. So right now I'm in recording mode. I hit Q twice, so I'm Q to record and record to the Q register, right? So I'm going to do delete to the end of the word and then I'm also going to do a down motion. So again, we can record any number of motions. Just going to watch what we do and then repeat that for us. So I'll hit Q again because I'm done. I deleted to the end of the word and went down. Now I can repeat that with at Q. At is what we use to say replay this macro. So I want to play the macro in the Q register. So I do at Q. I can do that again at Q and it's going to play that whole macro. Now there's a little bit of a shortcut that you can do. If you want to repeat the last macro that you did in our case Q, I can do at at, okay? I can do that again. So all of that becomes pretty easy with macros. Now you will find that this is something that's not extremely useful all the time unless you have repetitive work that works on these kind of lines. So as you're exploring with this one in your real code, post some comments, let me know how you're using it. I don't use this nearly as much as I should but I'd like to use it a little bit more because as you can see, it's pretty cool. So that's it for Q. As always, if you need help, colon HQ will get you there. And there's a few things that we didn't cover. I just wanted to cover the basics today but that is everything you need to know about Q to just get up and running. I'm really excited. Tomorrow, LMNOPQR, R is a really good one. It's one that I actually use a lot. So I'm excited to talk with you about R tomorrow.