 Okay, again, continuing with our videos from previous weeks. This is a series, be sure to check out the full playlist. There should be a link in the description of this video. Yeah, so we've been working with this file here last week, the index file, and again, let's see, can I tree this out? So this is my current directory. I have an index HTML file and a folder called JS with some JavaScript files in it. And last week we were working with opening more than one file. And the way we did that was we hit call and find, and then let's say I wanted to go into this main.js file. Now I can't, at this point, just type in main and hit tab to autocomplete or hit main.js. If I hit that, it's gonna tell me the file can't be found. I actually have to type in the folder, sorry, find.js main, and then I can autocomplete once I hit that, and it will open up that file. But be nice if I could just open up that main.js file without having to type in the folder, because maybe the folder name's long or maybe it's in a sub folder. Actually, let's do that. Let's see, let's go in. Let's make der.js files, my scripts. Yeah, and dash p on that. So I just created another folder. I'm gonna move my main.js file into js file, my scripts. So now if I tree out, you can see how this goes. So now if I was to go back into this file, into this index file, just as an example, and I hit call and find, now I have to type in js, you know, tab file, and I can autocomplete pretty quick because there's no other files inside those folders, but I still have to, you know, tab a bunch of times to get to that. It'd be nice if I could just type in main.js to open it. Well, we can do that. When you're autocompleting in using the find command, so if I hit find and I just started hitting tab, you'll notice it starts listing out all these different files. A lot of h files, for example, header files for C and C++. Well, that's because by default, at least on my system, there is already a path setting for VIM. And if I type in set path question mark, it will show me what path is set to. And you can see it's set to my USR Unix system resources include folder. And it also has a dot to look at my current folder. What I'd like it to do is to look at the current folder I'm in and all folders below that. Cause right now all those files I was listing, if I was to go out of VIM, I can list that entire directory. These are all the files that it was listing through. And that's in there by default, just because if you're a C programmer, you're probably gonna be wanting to use some of these header files. But you can customize your path. So what I'm gonna do is I'm gonna go back into VIM again and this I'm gonna call in set path. Instead of saying question mark, which shows me the path is set, I'm gonna say plus equals. What that is doing is taking my current path variable and adding something to it. I could also just do equals instead of brand new one, but I'm gonna say plus equals to add it to the default one and I'm gonna say asterisk asterisk. And I'm gonna do is I'm gonna hit enter. And what that does is that it adds all the files from my current directory on down, all the subdirectories. So now I can hit colon find and I can type in M and hit tab and it does main JS and I could enter. I don't have to put the full, as you can see the file named JS file, my scripts. It knows that I'm looking for that file when I choose it. And again, I can also find. And again, I have in the sub directory which more on that, JS forward slash Linux. I should be able to just type in Linux. Oh, let me see Linux JS. Okay, that did work. There were some files inside the include folder already. So it went to those first just alphabetically. Let me do find again. And I'm gonna say test and hit tab and hit enter. And it opens up that test file. I don't have to type in the full name. It's looking at all files. So you could have, you know, 100 different files. All in sub directories. And you can find them very quickly now by setting that path. So that is adding that feature to that. And so just a little added thing onto last week's tutorial, make it a bit simpler. But as we've learned in previous tutorials, if I quit out of this and I go back into it, now if I type in find main and I can't tab complete, why, because any function I run down here in this little command prompt inside VIM is only for that session. So if I wanna make it permanent, I have to add it to my VIM RC file. So let's go ahead and do that. I'll quit out of this. I'll say VIM and in my home directory, let me clear the screen here. So my home directory, there's a file called dot VIM RC or if it doesn't exist to create, we've already created it in previous tutorials. Remember the dot means it's a hidden file. So you won't see it unless you're looking for hidden files. And I go in here, I can now anywhere in here, I can just add in path plus equal asterisk asterisk. Now when I say, oh, actually, sorry, it's, yeah, it's telling me there's a problem. It's supposed to be set path plus equals asterisk asterisk. Now when I go back into my index file, without I don't have to type that command again to type in main JS and open it. So I'm hoping you're liking this series a lot of basic stuff in here that you may not know if you're brand new to VIM. So I thank you for watching. As always, please think about coming to support over at patreon.com, that's patreon.com, forward slash mail x1000, there's a link in the description of that, as well as a link to my website, filmsbychrist.com. And there you can search through all my videos from both my channels. And also you can support me there through a PayPal account. So I do thank you for watching. If you can't support me financially, think about liking, sharing, subscribing and commenting. I thank you so much for watching. I really do appreciate it. And as always, I hope that you have a great day.