I know that philosophically the f
/F
command is used to search through the current line. However, other than [LINE]G
f
, what would be the best way to jump to somewhere else in the file in the style of the f
command?
Add this line to you ~/.vimrc
set incsearch
to activate incremental search and use /foo<CR>
to search forward or ?bar<CR>
to search backward.
Note that, like fFtT
, /?
can also be very useful as motions for dcsv
.
If you don't mind using a plugin, there are a bunch of them designed around the idea of multi-dimensional fFtT
like this one. Take a look around vim.org.
You may want to use the vim plugin EasyMotion,
<Leader>f<char>
will search forward from current line to the end of current window.
<Leader>F<char>
will search backward from current line to the start of current window.
for all usage :help easymotion.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With