Vim Recall繁體中文

Move just before a character

t{char}

Example

Normal 0 / 1
abc,de
Cursor on line 1, column 1

Move to the character before the next match.

Before & after
Before
abc,de
Cursor on line 1, column 1
After
abc,de
Cursor on line 1, column 3

Start in Normal mode. Cursor starts on a. Type t, to stop on c.

Details & Vim help

Example replayed in Vim

Move to the character before the next match.

Replace {char} with the target character. t searches forward on the current line but stops just before the match. This is useful with operators when the delimiter should remain.