Skip to main content
  1. Posts/

Add A Custom Search Engine for Vimium

·280 words·2 mins·
Technique
Table of Contents

Vimium is a Chrome extension that lets us to browse the internet with our fingers, rather than using the mouse. In this post, I will going to share how to add a custom search engine for Vimium.

There are some background knowledge we need to be clear.

Vomnibar
#

If you have installed Vimium, in a normal web page, you can press o, a long bar will appear and wait for your input. Here we can type keywords to search through history and bookmarks, or just search through the default Google search engine. This long text bar is called Vomnibar by Vimium.

Add custom search engine
#

For example, suppose that we want to add google translate as our custom search engine. First, open the Vimium options, in the lower part, there is “Custom search engine” part. In the text box, add the following new line:

gt: https://translate.google.com/?sl=de&tl=en&text=%s&op=translate Gtranslate

In this example, the alias for Google translate is gt. In the URL part, we need to replace the actual search query with %s (the query text will be URL-encoded, to avoid URL-encode, use %S instead). Gtranslate is custom name for this new search engine, and can be empty.

Then click Save changes in the bottom right. The new search engine should be added with success.

Use the new search Engine
#

Open a normal webpage, press o1, we should see the Vomnibar. Then press gt + <Space>, we are now prompted to enter the query text. After entering the text, use return key to search.

References
#


  1. This will open a new search result in the same tab, to open the result in new tab, press capital O instead. ↩︎

Related

Find Which Font is Used in A PDF
·222 words·2 mins
Technique PDF Font
Converting PDF Pages to Images with Poppler
··565 words·3 mins
Technique PDF
Learning Expect Programming
··988 words·5 mins
Technique Expect Regex