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"

Aching back from coding all day?

Inversion Therapy Table

Aching back from coding all day? Try Back Problems

Stretch out your back and relieve your back muscles with inversion therapy. This device counteracts the forces of gravity on the body by decompressing and elongating the spine. By using this product just ten minutes a day, you can be well on your way to improved circulation and posture while relieving muscle aches, back pain and stress.

$$ Check price
119.98119.98Amazon 4.5 logo(1,700+ reviews)

More Back Problems resources

Take your Linux skills to the next level!

Linux for Beginners

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

Linux for Beginners doesn't make any assumptions about your background or knowledge of Linux. You need no prior knowledge to benefit from this book. You will be guided step by step using a logical and systematic approach. As new concepts, commands, or jargon are encountered they are explained in plain language, making it easy for anyone to understand.

$ Check price
24.9924.99Amazon 4.5 logo(101+ reviews)

More Linux & UNIX resources

Ad