?
The
Motion
The ? command in Vim
Motion
search backward
Search backward — opens a search prompt. Like
/ but in reverse. Accepts the same regex syntax. n continues backward, N goes forward.Examples
?pattern?\<word\>(exact word back)?(repeat last search backward)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related motions