Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use vim's 'f' command (find) to find the next tab

Tags:

find

vim

search

I use vim's f command all the time, but I can't figure out how to find special characters (like tabs). E.g., hitting f\t searches for \. I know you can use digraphs in conjunction with the f command, but I don't think there is a digraph for the tab character.

like image 877
ktr Avatar asked Apr 10 '13 13:04

ktr


People also ask

How do I find tabs in Vim?

Searching for the Tab Character In NORMAL mode, type /\t and hit <Enter> . It will search for the Tab character ( \t ) and highlight the results.

How do I use command F in Vim?

If you press "F", Vim will move the cursor backwards instead of forward. Given the previous sentence, if pressed "Fq", and the cursor was at the end of the line, it would move to the "q" in "quick".

How Find Next in Linux?

Press n to search for the next occurrence or uppercase N to search in the opposite direction.


1 Answers

Just type f and then hit the Tab key.

like image 182
bdesham Avatar answered Oct 26 '22 11:10

bdesham