In this video, we see how to jump to a character in the line we are on.
To jump to the next letter "r" on the line you are on, you would type fr
To jump to the previous letter "r" on the line you are on, you would type Fr
To jump to the next letter before the letter "r" on the line you are on, you would type tr
To jump to the letter next to the are "r" on the line you are on, going to the left, you would type tr
We can also Yank, Delete, or Change from our cursor to the letter we finding or going to, by pressing y,d, or c before pressing the f or t
If there are multiple occurrences of the character you are searching for, you can use the search we learned about in Vim (07) and Vim (08)
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
5 Comments