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.
Justin M. Keyes
source share