Next: Flexible Matching, Previous: Interactive Substring Matching, Up: Matching [Contents][Index]

### 2.2 Prefix Matching

The standard way of completion with *nix shells and Emacs is to insert a prefix and then hitting `TAB` (or another completion key). Cause of this behavior has become second nature to a lot of Emacs users Ido offers in addition to the default substring matching method (look above) also the prefix matching method. The kind of matching is the only difference to the description of the substring matching above.

You can toggle prefix matching with `C-p` (`ido-toggle-prefix`).

For example, if you have two buffers `123456` and `123` then hitting `2` does not match because `2` is not a prefix in any of the buffer names.