Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 33382

For questions about searching for text with / or search(). For find/replace operations, use tag [substitute] instead.

0 votes
0 answers
22 views

Map a key in "search mode" [duplicate]

"Search mode" is not a true mode, but is it possible to create mappings that only apply while typing a search after / or ?? … I am wondering how one would go about mapping <C-f> to start a search and mapping <C-f> again to cancel it. …
mgarort's user avatar
  • 275
3 votes
2 answers
633 views

Backward search in current line with search() and z option

searchpos() has the same options as search(), so I imagine they work equivalently. I have written the following: function! … () are: n, that indicates to not move the cursor; b, to search backwards; and z, for starting the search at the cursor position rather than at the beginning or the end of the line. …
mgarort's user avatar
  • 275