Skip to content
Abdullah Alattas edited this page Jun 30, 2023 · 25 revisions

Overview

This feature allows you to add keyword shortcuts for searching with your custom search engines in Vimium's Vomnibar (type "o" to open the Vomnibar). This works very similarly to Chrome's built-in search-engine shortcuts. Vimium has its own list of search engine shortcuts because Chrome extensions like Vimium do not have access to Chrome's search engines.

Your search engines and their shortcuts can be edited on Vimium's options page.

Syntax

Each search engine consists of a keyword and a search URL. %s or %S in the search URL will be replaced with your search terms. If %s is used, then the terms will be URI encoded, with %S they will not.

# This is a comment.
keyword: https://www.google.ie/search?q=%s

# Custom search engines can have descriptions.
g: https://www.google.ie/search?q=%s Google search

With the example above, if you typed g cherry pie<Enter> into the Vomnibar, then Vimium would navigate to https://www.google.ie/search?q=cherry+pie.

Chromium/Chrome's search-engine settings

It can be cumbersome if you have many search engines in your regular Chrome settings and want to copy them into Vimium. To help, here is a small shell script (written by hagabaka) to extract your search-engine settings from Chrome.

(If you use Chrome instead of Chromium, then you may have to edit this script, replacing chromium in the obvious path with google-chrome. See this comment.)

Ideas for search-engine shortcuts

Here is a list of useful and default google and other search engines in the format specified by Vimium. If you think there is something generally useful that's missing, feel free to add it.

g: https://www.google.com/search?q=%s Google
gi: https://www.google.com/search?tbm=isch&q=%s Google Images
gm: https://www.google.com/maps?q=%s Google Maps
recent: https://www.google.com/search?hl=en&tbo=1&tbs=qdr:y&q=%s Google (last year only)
translate: https://translate.google.com/?source=osdd#auto|auto|%s Google Translator
w: https://en.wikipedia.org/wiki/Special:Search?search=%s Wikipedia
d: https://duckduckgo.com/?q=%s DuckDuckGo
a: https://www.amazon.com/exec/obidos/external-search/?field-keywords=%s&mode=blended Amazon
e: https://www.ebay.com/sch/?_nkw=%s eBay
b: https://www.bing.com/search?setmkt=en-GB&q=%s Bing
gh: https://github.com/search?q=%s GitHub
hn: https://www.hnsearch.com/search#request/submissions&q=%s&start=0 HackerNews
so: https://stackoverflow.com/search?q=%s StackOverflow
su: https://superuser.com/search?q=%s SuperUser
sh: http://symbolhound.com/?q=%s SymbolHound
ud: https://www.urbandictionary.com/define.php?term=%s UrbanDictionary
wa: https://www.wolframalpha.com/input/?i=%s Wolfram|Alpha
qw: https://www.qwant.com/?q=%s&t=all
ph: https://www.phind.com/search?q=%s Phind
mdn: https://developer.mozilla.org/en-US/search?q=%s MDN
v: https://search.brave.com/search?q=%s Brave Search
yt: https://www.youtube.com/results?search_query=%s YouTube
imdb: https://www.imdb.com/find?s=all&q=%s IMDB
trello: https://trello.com/search?q=%s Trello
search.creativecommons.org: https://ccsearch.creativecommons.org/?search_fields=title&search_fields=creator&search_fields=tags&search=%s
search.yahoo.com: https://search.yahoo.com/search?p=%s&ei=UTF-8

# Find your way from your home to places using Google Maps
home: https://www.google.com/maps/dir/home/%s

# Use google to search the current site you're on
site: javascript:location='https://www.google.com/search?num=100&q=site:'+escape(location.hostname)+'+%s'

Additional sites with suggestions:

Clone this wiki locally