In this video, we introduce the help features, Vimtutor and :help
We then take a look at why we use hjk and l to move around the screen and how to remember which one is up and which one is down.
It is then shown that you can type a number before hjk and l to move that in that direction that number of times – going to the top or the bottom of the file using a number larger than the number of lines in the file, then k to go to the top or j to go to the bottom.
We see how to turn line numbering on and off with :set nu and :set nonu
A quick way to get to the bottom of the file is G and to get to the top use gg
1% is another way to get to the top of the file and 100% will take you to the bottom and any integer in between will take you that percentage into the file.
r will replace a single character
~ will toggle upper/lower case
Everything shown in this video is in normal mode
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
14 Comments