Mission 12 / 52• Essential Motions

Till Character

`t` stands for 'till'. Like `f`, it searches for a character on the current line, but it stops *one character before* it.

This is especially powerful when editing up to punctuation or delimiters.

Till character motions

  • t{char}jump forward till (one character before) {char}
  • T{char}jump backward till (one character after) {char}
  • ;repeat last till motion
1
const greeting = "Hello wonderful world";
2
const result = formatUser(name, age, email);

Position your cursor before the quote and press `t"`. Notice your cursor lands on the character right before the quote!

Now it's your turn!

0 / 4 tasks complete0.0s / 14s par0 / 11 par

Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.

Task 1: Stop on e immediately before the comma with t,.

Show hint

Type t followed by a comma.

1
one, two, three
jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next