 Welcome back to the channel everybody today. I'm going to show you very briefly how to set up your own configuration of Neo Vim now I'm not gonna go very in-depth today. I might do make this turn this into a little bit of a series Next time I'll look into plugins and stuff now. I want to start right off the bat by saying I am not a Vim or a Neo Vim aficionado. I don't know everything I wouldn't even consider myself an expert. I'm very much a noob when it comes to them You watch those Vim videos and everybody's just flying through Vim and they know all the key bindings and stuff like that I'm not that person I'm very much probably like anybody's watching this video. I'm Just a guy who looks some stuff up on the internet and thought he'd share what he's learned so far Because I got way more to learn so the first thing you need to do is install Neo Vim and that's just That's just a Pseudo app to install Neo Vim. That's literally all you have to do on Ubuntu if you're on Arch is Pseudo Pac-Man dash capital S Neo Vim Neo Vim is pretty much in all the repositories. It's real easy. Take very long to Install it all. So the next thing we want to do is we want to cd into the .config file Okay, if you do an ls-a on this Basically You'll see all of your config files. Now if you're not If you've been using your system for a long time, you probably see more stuff here than what I have This is just a virtual machine or If you use a window manager tiling window managers a lot of times those have a lot more different config files And this is what they're stored. So you want to make a directory here and you want to call nvim. Now you want Very specifically called nvim not Neo Vim For whatever reason, it's just nvim is not Neo Vim. Okay, and then we want to cd into nvim and That's just an empty directory. Okay, so the next thing we want to do is Create a general file so make directory now You can't you can just do this you can do touch init dot vim and You could just use that file for everything you could just use that like you would use a vmrc file and Everything would be great, you know, it worked fine like that or you could be a touch more organized and do a put your settings in a general file Okay cd general And that's just an empty file and we want to create a Configuration file called settings that loops settings them Okay, and then we just want to end them into settings that them Okay, now we're in Neo Vim. We're using the stock configuration file and We just want to do some, you know, if you've never used them before I'd answer. I'm not gonna And then still uses them tutors. I'm assume some basically I'm assuming that you know at least a little bit of how to use them That's basically all I know. It's a little bit how to use them. I don't know everything So just Insert the first thing we want to do is I always change the leader key So by default the leader key is the the I guess it's the backslash That's way too far away. We want to make it space so insert let G and Then map leader And I make sure I learn how to spell equals Apostrophes and this is a backslash And then bracket or Whatever that is space and then parentheses, okay, and then we want also want to do syntax Mabel oops Spelling is hard and we want to set the line numbers so set number Relative number Okay, and then if we Get out of the skate mode and save this and then do source Dollar sign my Vim RC Wonder why they didn't work. Why is nothing working today? Well, fine. We'll just quit out. We'll just quit out of this and we'll go in here again Why is nothing working today? Oh you wanna want? I'm a dumbass You got to source it first Anyway, so we got to quit out of this and we got a CD up a level and go to nvm In it Vim and source Source and Then we want to kill the slash dot Home oops Config in Vim slash general Slash settings Okay, and then W Q Just W and then source Dollar sign my Vim RC There we go If you skip steps things don't work That's pretty much the way things work Okay, so now we can go back to the settings and add some more settings So we quit out of that CD into general oops Forgot I'm using bash or not and not zsh nvm Setting and we're just back here Okay, we'll add some more stuff here. We want to set the wrapping so if you're How you set up your text wrapping is really good depending on what you do with them So I'm a writer so I have something specific for Making it so that when you have a paragraph a text It actually stays together as a paragraph even if it's all on one line It looks like it's a paragraph Where if you don't do that it things get wonky so I have set wrap line break No list All right. Now some people Have no wrap Duh, that just means it's not gonna wrap text at all. It'll just keep going and going on and going And that's that's not great for writing so set wrap line break and No list, okay, so it takes care of the texture. I mean we also want to do I like doing set cursor And then do this source dollar sign my my MRC and That'll get you a line You can move I'll do a separate video on how to theme that line because really that's not all that attractive because a lot but Actually, I can just go through it So if you do if you want to go ahead and theme it real quick, you can just do highlight which is hi Cursor line C term oops equal none see Term BG equal gray as you can tell it did not like that C term BG gray and Then a C term foreground equal white That's the text for round and then these are for GUI versions of them BG equal gray GUI BG Gonna make sure I spell it right g r y and then GUI foreground equal white okay, and You know if you do this right source dollar sign my of them or see That's better cool, huh? so there's that and then The next thing you want to do is deal with some splits So you want to split basically means you can have two Files open side by side. It's basically splitting them. Just how it's how it looks bash R.C. Okay. Oh, I'm not I was in the right Directory to get that right, but you get the understanding. So we just Yes, I know I could have done that and the thing about them is you can quit in so many different ways And this is the first way you learn so Getting out of the habit of quick exclamation point is pretty hard Anyways, I want to talk a little bit about splits That means you're gonna have to Insert mode make sure at the end here You want to set split below split right Okay, and then we also want to do That basically just tells where What does that do? What does that do? I'm not sure what that does split below split right So horizontal splits will automatically be below Vertical splits will automatically be to the right that just determines. Yeah, that's what I did You know automatically set your split position to the right or below it otherwise Sometimes they'll go to the top or the left depending on which file you have active or something I don't know how it does default in a default way Oh, next thing we want to do Before we do any of that stuff we want to Go up here Oops, already an insert mode Set t underscore Co Equal 256 That allows your color schemes and stuff to come through because otherwise then won't use a 256 color palette That's just something that you know is default and pretty much everything Now As you can see my mouse works in here. I can replace I can scroll up and down just fine, but I can't Put my cursor where I want to put it now. Sometimes I use my mouse. It's Probably Something that will make me lose my nerd credit to tell you I use the mouse in Vim sometimes But I do I can't help it I just do so We want to Put in here Set mouse Equals And I see our that should Let me use my mouse whenever I want to See if I'm right. Oh, that's because I It really help if I was doing this, you know, right all the time So I should be able to go through and put yeah, I see how now I can go through and put my Perseverance with my mouse now Like I said, that's hypocrisy and Heresy is probably the word I was looking for there in Vim circles, but Sometimes I just want to do that Anyways, so next We want to go through And Set up Spaces instead of tabs. So basically this means it'll Instead of if you use a tab You can only go back and forth a tab at that point if you set up spaces and says has a set expand tab and Set smart tab Basically this allows you to Go back Spaces instead of tabs so Source My So now if we do insert and do a tab This will let me go back, you know spaces instead of tabs That's useful in case you want to Remove some you know spaces there or if you want to either the tab was too long or too wide So I'm not sure We also want to make sure we always show the status line so Insert A set last status Equal to learn how to spell last status Oops, and that's supposed to be a two and out of three Typing is really hard today folks Anyways, and that's just make sure that the status line always shows up and Basically right now you're at a fully functional vmrc file or neovim in it file You could be perfectly happy and this would be all you need now In my next video, I'll talk a little bit about how Key bindings work I'm gonna set key bindings for switching between splits set key bindings for opening up nerdtree after I do some plug-and-work I guess also some Key bindings to Remove many bar the toolbar the right scroll hand right hand scroll bar and so on And then Probably That'll be it But I'll see if I can find so you want to also to resize splits because the way you resize splits right now is Basically dragging as far as I know Is the default is not good anyways that is it for this time if you Like this video go ahead and subscribe and like and all that stuff. I can't imagine anybody actually wants to Watch this nonsense, but What are you gonna do? See you next time. Have a good day