08. Searching for characters in Vim f, F, t, T, ; (semicolon), , (comma)

We can quickly navigate a line by searching characters. We can do this using the find and til keys: f - to the first character ahead "fa" moves cursor to "a" ahead F - to the first character behind "Fa" moves to the first "a" behind t - up to the first character ahead T - up to the first character behind The difference between the "f" and "t" is that one moves up to the letter, and the other moves directly on top of the letter. Try searching for any letter in any line in this file. Since it can get cumbersome if we have multiple occurences before our desired destination, we can use the repeat commands: ; (semicolon) - repeat the command , (comma) - reverse the command; search backwards of what you started with Try getting to the last "e" character in this sentence. Now try going back to the first "e." Review Questions: 1) What is the fastest way to copy a line? 2) How do you paste above your current line? Solutions: 1) "yy" 2) "P"

Take your Linux skills to the next level!

The Linux Command Line

Take your Linux skills to the next level! Try Linux & UNIX

The Linux Command Line takes you from your very first terminal keystrokes to writing full programs in Bash, the most popular Linux shell. Along the way you'll learn the timeless skills handed down by generations of gray-bearded, mouse-shunning gurus: file navigation, environment configuration, command chaining, pattern matching with regular expressions, and more.

$ Check price
39.9539.95Amazon 4.5 logo(274+ reviews)

More Linux & UNIX resources

Aching back from coding all day?

Acupressure Mat & Pillow

Aching back from coding all day? Try Back Problems

Relieve your stress, back, neck and sciatic pain through 1,782 acupuncture points for immediate neck pain relief. Made for lower, upper and mid chronic back pain treatment, and improves circulation, sleep, digestion and quality of life.

$$ Check price
144.87144.87Amazon 4.5 logo(1,890+ reviews)

More Back Problems resources