Till Motion

Use the till motions to quickly jump till (just before) a specific character within a line.

t
char
-move forward till (just before) the next occurrence of {char} within the line.
Example
T
t
char
-move backward till (just before) the previous occurrence of {char} within the line.
Example
;
-repeat the last till motion.
Example





// use t to jump till the target
const total = sum(items.filter(x => x.active));
const users = getUsers({ active: true });
 0/15  00:00

Note: The till motions can only be used to navigate till characters within the current line. If no matching character is found in the current line, the cursor will not move.

When to use t and T motions?

The till motions are useful when you want to quickly jump till (just before) a specific character within a line, especially if the character is far from the current position.

These motions are frequently used to jump till symbols such as ( and {, or till capital letters in camelCase or PascalCase identifiers.

The main difference between find (f) and till (t) is that find jumps to the character, while till jumps till (just before) the character. This is particularly useful when you want to make changes or selections that don't include the target character itself.