 Hey everybody welcome back to the channel today. I'm going to be talking about nerd tree now What is nerd tree and what is it good for? the Best way to describe it is that nerd tree allows you to Net not only navigate your file tree your your file structure within your computer But also switch back and forth between different files so First of all, let's go over how to install it. So We're in our neovim config file here Now this is gonna be that basically the same if you're using regular standard old them only your chances are you're just gonna be using just a One plain old file called MRC The syntax and everything is the same. It's just that in ours We're Sourcing different files so that it's a little bit more organized So Interesting. Okay In it. I keep you got to keep Remembering that I'm not in my own config file. So normally if I was highlighting one of those File paths, I would just be able to hit gf and be able to go to that file But I think you need a specific plugin for that. I'm not can't quite remember how I set that up Anyway, so if we ls here again We want to install nerd tree. So the first thing we'll seem to put we'll end them into our plugins uh Dot vim file and you'll need to put this I showed in the last video actually how to do this, but all you have to do is copy and paste this This line right here if you're using vimplug if you're using something else on the nerd tree uh Get hub page It'll go through and tell you how do you how to do things in bundle and din and I've never heard I apt them before um but that's uh You know if you're using a different plugin manager or whatever the github Page will you know show you how to do it so Once you've copied that We wanted to end them into Into our um General settings That's them. Okay, and we want to make sure syntax enable is installed is In there and this one this line right here file type plugin indent on Um, basically this just make sure that nerd tree shows up Looking proper Um, otherwise you might get some errors and things won't necessarily work, you know work the way you want to do um, the last thing you want to do is go into your um key bindings And put this line in here map See that in so basically what this line does here is it's mapping To keep to these keys. We just control and end the letter n And then it will perform this action. So if we just did this Down here at the bottom We'll get we get nerd tree, but we're map we want to map that to A key so all we have to do Is press that key combo and it will show up Otherwise you'd have to go nerd tree toggle You know every single time and that's uh, that'd be a pain in the butt, right? So once you've done that and you've saved oops Uh nerd trees and salt so you know, you can just go through and be go into a um, so if we go to cd Back into the home directory And we end them into dot bash I mean, I'll have a bash RC Let's see if there's something here we can open up Vim RC So this is basically just the smallest vmrc file you ever did see Um, but because we're using nvm most of our work is gone into there, but If you want if you're into a file Hit control n and there's nerd tree now. This is um You navigate this by using your vm keys Or your arrow keys either one will work if you want to get into something you just do You know I don't actually have any documents on this folder or any doc. I don't have anything on this computer because it's a virtual machine, but Um If you did have things You know, all right, here we go Can actually go through and you know Navigate through different folders now it this by default This does not show you Uh hidden files so you have to do capital i in order to see hidden files And then you can go through and you know and go back to nvm and bindings and general and all this stuff It's really very simple now if you control and arrow Uh control l maybe There's a key combo to go back to the arrow your main window, but I'm not quite remembering what it is on stock and vm You can go back to the right your main screen just by hitting control and again that will close neovin Now there's some things you can do If you want to If you want to have your Your nerd tree open up automatically when you do vm So let's uh end them into our init dot vm file and actually Wrong one and then into general Settings there we go We want to put in uh this These lines here let's Uh Yeah, I think it's this here See if this works. I will put a link to the github uh page for nerd tree in the the video description below and you can find all these Commands and stuff right in there it'd be easier than me trying to put it off the commands themselves in the video description It's a fairly good Um instructional thing one thing you'll want to know And we'll see if that works in just a minute is up here where it says to insert into your vmrc It says call pathogen infect that only needs to be done if you're using pathogen To do okay, otherwise you just need these things. Um, you may not even need these things normally But I put them on for other reasons anyways, so it's just it's just safe to have them there Um, so let's go back and go back through and see if that works if that worked It did not work Interesting. So wonder why they put that there if it doesn't work. Anyways Theoretically there should be a way to make it so this year. Um, I wonder So we're we're gonna explore this together, so we'll just go ahead and delete these Files and go back down here Uh And we'll put this one in there, okay And we'll see if that worked that did work. Okay So that's the line you need if you want to go through and do things now if um, You might need those other ones so Those other ones that didn't work If you just write and them No, that worked too. So apparently you don't need to specify a file even though it says you do As you can see the instruction thing on there's just, you know, not necessarily the greatest anyways It's just okay. I'm not getting exactly sure then What the other lines are are for But who cares? Anyway, so that is nerd tree a very simple them plugin that allows you to Navigate your um File structure I'm sure there are other bindings. So if you need help if you're in this your thing here and you press control Uh, or shift. I guess the question mark Words are hard today for whatever reason Um, you can just go through and see the other things that you need To you know other key bindings that work with nerd tree So it's there's quite a few of them here So if you can open things up in different splits and um new tabs and different buffers and you know, you can open up A specific thing you can go to the navigation once here p go to root go to parent go to flash child and so on um The one I used earlier for showing hidden files is down here If you just control I I'm not sure if that stays on or if you have to do control high every time I'm sure there's a way to customize that Anyways, that is that is nerd tree in in them and also of them Thank you for watching. I know this I was very hard with languages tonight. I could not talk with a dam I was very stumbly over my words So thumbs up if you liked all that nonsense thumbs down If you didn't give it a subscribe if you're interested in that sort of thing We will see you next time With part four of our our neovim config file creation video series thing That's that tell us your words are just hard tonight. Um We're going to talk a few more about a few more plugins over the next few videos. We're going to talk about Surround and we'll talk about ranger Because I prefer actually prefer ranger over in your nerd tree, but I think most people Could most people don't have ranger installed on their computer. So we started off with nerd tree, but I'm going to show ranger Anyways, that's coming up. Uh, thank you for watching. We'll see you next time