Vim motion vertical version f & t?

In vim, I really like f and t in normal mode. Are there vertical versions of these? If not, what is the best way to jump so many lines down to the word I see? Do you just need to count the lines and do 12j or something else?

+7
source share
3 answers

Can you use /foo (or ?foo for back)? I tend to use this more than t or f .

+7
source

I think you will like the EasyMotion plugin.

You type <leader>fb to go to b , horizontally and vertically.

(you can also find the vim.org git mirror here )

+6
source

Try vim-sneak , which I wrote for this very reason. This allows you to jump to any location in three keystrokes, setting the first two characters of the target:

 s{char}{char} 

For example, sab moves the cursor to the next instance of the string "ab". And sab moves back to the previous instance of "ab".

It also supports:

  • visual mode
  • (e.g. dzab , czab and yzab )
  • repeat operation c .
  • repetition of movement with ; and

vim-sneak is similar to vim-seek with many improvements.

+1
source

All Articles