 What does X do in VIM? Well, X and capital X work effectively like backspace and delete. Hey, welcome back to another video on VIM. I'm Chantastic, and we are really getting close to the end of our series on the VIM alphabet, VIM from A to Z. Today, we're covering X. Now, X really behaves a lot like delete and backspace, but in normal mode. So if you were an insert, you could use either of those keys and it would work as you expected. But in normal mode, you can use X to behave exactly like that, deleting one character at a time, but without entering insert mode. So let's open up our editor. Let's open up the Lipsum.txt file. I'm going to use W to move forward by words, a couple words. And we'll see exactly how X works. Now, if I hit X, it's going to delete the character under my cursor. And that's going to act like the delete key. So you have a delete key on your keyboard. Now, on a Mac, it's like delete forward and delete is like a backspace on every other keyboard on the planet. But this is like the delete forward where it deletes the character and then everything shifts in. Hey, so we can hit that as many times as we want. You can see that we are not entering insert mode. So we can continue to navigate like we normally would. And then we can use Shift X to do a delete, like a backspace or delete on the Mac keyboard. This works like a backspace where it deletes kind of back the character previous to your cursor position. Now, if you want more help, you can type colon help X or you can just type colon H X and get into the help documentation. Now, this talks a lot about the details of this command. We can see here that it is a command that takes whatever it deletes and puts it in the register. Now, I'd like to show you one last thing. This command takes account. So if we wanted to delete forward to the comma and but we wanted to do that using X by letters, we would do three X and that would delete all the way to the comma. And then we could do one capital X and that would delete, you know, that that extra space. I'm going to be really honest with you. I don't use X a lot. Typically, I'm changing something. I probably should because a lot of times I'll change something and then escape out. But that's what X does. If you have any ways that you're using it, if you like this more than C or S, feel free to tell me that in the comments, how you're using it or what you think you might use it for. That's it for today. Thank you so much for watching. I will see you tomorrow when we cover why.