The download to go with this video can be found here:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10002#Vid18
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 leader key and map the relative line numbers to leader F3
See the complete Vim playlist at:
https://www.youtube.com/watch?v=1lzXr-MztOU
See the complete Vim playlist in a single video at:
https://www.youtube.com/watch?v=3G6kAEvbv2A
Website link:
https://thefrugalcomputerguy.com/linux/seriespg.php?ser=10002
3 Comments