your macros are stored just like everything else in vims registers so if you run the registers command you can take a look at them there's a bunch of them around here they are named after letters and numbers and there are some special names too but in this case we chose the name a for a macro and you can see here these are all the keystrokes that i was doing to uh to make the macro work even the part that we appended to the end of the macro is still there now the cool part about this is because we know where this is we can start manipulating our macro by taking it out of the register and we can change it and in this way we can go ahead and improve our macro by using some more interesting movements than hjkl so you know one one kind of low hanging fruit here is all these l's we want to replace those with something a little a little more elegant a little smaller so let me go ahead and introduce you to these movements w takes you to the beginning of the next word so the slash to the capital g into the colon on this line e actually goes to the end of the word that you are currently on so instead of going to the slash you're going to go to the r is considered a word and for the next one it's going to go to this t instead of going to the g so that's a useful thing especially if you need to append to the end of the word b goes backward a word so kind of the opposite of w and i really like using these a lot in my day-to-day uh f forward searches on a letter so if i do f to the colon that goes to the end let's do fe and then you can use a semicolon to keep searching forward for the next e that happens and similarly there's a reverse version with a capital f capital f e and you can use colon and go backward to wherever the next e is so i'm looking at this line i'm thinking we go ahead and use f colon to get to the colon and use w to get to the next the beginning the next word and that should do great and it's actually a pattern that you can use a lot in yaml files like this so let's change every all these l's and hit f colon w now we can yank all of this into our a register and i can show you right those l's are gone f colon w that's what we've got now and let's go ahead and change this to some really cool name that i just made up and run it again and we get exactly what we were expecting because you know nothing actually changed but we did make this macro a little smaller a little more easy to read if we need to keep changing it which we are going to so one handy tip is to go ahead and prefix your macros this helps a lot with consistency so sometimes your macro especially if you're working with a less structured document like this like code or a text document you don't know exactly where your macro is going to end up so it would behoove you to make sure your macro always starts in the same kind of spot so these movements will help you a lot with that you can use zero to get to the
NO_SEGMENT_TOKEN