PracticalVim Tip49 - yszheda/wiki GitHub Wiki

Table of Contents

Tip 49: Find by Character

Return to the top: <>

References

References

References

Don't Throw Away the Reverse Character Search Command

References

The default leader key is `\`.

Character Searches Can Include or Exclude the Target

| Command | Effect | | `f{char}` | Forward to the next occurrence of {char} | | `F{char}` | Backward to the previous occurrence of {char} | | `t{char}` | Forward to the character before the next occurrence of {char} | | `T{char}` | Backward to the character before the previous occurrence of {char} | | `;` | Repeat the last character-search command | | `,` | Reverse the last character-search command |

Preference:

  • `f`/`F` in Normal mode
  • `t`/`T` in Operator-Pending mode
⚠️ **GitHub.com Fallback** ⚠️