forked from philc/vimium
-
Notifications
You must be signed in to change notification settings - Fork 0
Find Mode
int3 edited this page Feb 29, 2012
·
2 revisions
- Find queries are global and persistent -- if you search for 'test' in one tab, pressing
non any other tab will search for 'test' as well. - If your search matches the contents of a textbox whose contents you wish to modify, press
<ESC>to enter insert mode and begin editing.
- Find mode uses smartcase -- it defaults to a case-insensitive search if you use only lowercase characters, but switches to case-sensitive mode upon detecting capital letters. However, you can force case sensitivity by using the
\Iescape sequence. Hence/testis case-insensitive,/Testis case-sensitive, and both/test\Iand/te\Istare case-sensitive and match 'test'. - The
\rescape sequence ensures that the search string gets treated like a Javascript regular expression, so/t.st\rmatches 'test', 'tast', 'tost', etc. - Case-sensitivity behaves the same way for regular expressions --
/t.st\rwill match 'TosT', but/t.st\r\Iwill only match 'tast', 'tost', etc. - Blackslashes themselves can be escaped, so
/test\\will match 'test'.