In vim, I really love f
& t
in Normal mode. Are there vertical versions of these? If not, what's the best way to jump so many lines开发者_开发知识库 downward to a word that I see? Do I just have to count the lines and do 12j
or something?
Can you use /foo
(or ?foo
for backwards)? I tend to use that more than t
or f
anyway.
I think you'll love the EasyMotion plugin.
You'll type <leader>fb
to go to a b
, horizontally and vertically.
(you can also find the vim.org mirror git here)
Try vim-sneak, a plugin I wrote for this very reason. It enables you to jump to any location in three keystrokes by specifying 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 backwards to the previous instance of "ab".
It also supports:
- visual mode
- operations (like
dzab
,czab
, andyzab
) - operation-repeat with
.
- motion-repeat with
;
and,
vim-sneak is similar to vim-seek, with many improvements.
精彩评论