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 "Nop" 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.
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
10 Comments