The rc in .vimrc stands for run commands, some people call this the vim resource file, we will think of it as the vim configuration file.
The .vimrc will be in your home file and the dot before the vimrc is needed for vim to find it. You can assure you are editing the .vimrc file from the home file by typing "vim ~/.vimrc"
Use the double quote to make a comment in the .vimrc file.
We add the run command :set nu to turn on the line numbers, then we learn that :set nu! will toggle on and off the line number, so we map that to a key (F3) in normal mode.
Then we get introduced to the key and map the relative line numbers to F3
I pick up from where we left off in the last video with F3 mapped to line numbers and leader-F3 mapped to relative line numbers.
I talk about why we want to use a leader key instead of mapping "/" F3, people often want to use a different key than "/" to be their leader key and plugins often use the leader key before pressing a specific key. Commons keys people map their leader key to are the comma key and the space bar. I map my leader key to the comma.
I map the F3 to toggle on and off the line numbers in Insert mode showing we need the change nmap to imap and make a few other changes to our command.
We see that can assign a key No Operation and we see that nnoremap and inoremap will not allow a key to be assigned to anything else (like a plugin key assignment).
I show some abbreviations (which works like auto-correct) and we finish by turning on the Default Search Highlighting that we saw in Video 7.