What is the killer feature here?
What is the killer feature here?
':back' is mapped to 'H' -- in correspondence to the usual Vi/Vim paradigm to move the cursor with the home-row keys, hjkl. ':open' is naturally mapped to 'o' and drops you into a tab-completable shell. ':tabopen' -> 't' and so on.
The key part, as in Vim, are /not/ the mnemonic, highly effective shortcuts. Rather, it's the modal workflow that Vim and it's spritual descendants bring to the table. I'll leave it at that (sounding like a damn preacher already).
[0] Now that I've looked at it, it becomes clear that they're selling rather directly to Vim-acolytes. Pity, perhaps.
1. Vi(m)-like keybindings
2. Portable configuration (dotfile)
Like Vi(m), there are standard keybindings mapped to common commands, plus the ability to create your own. My fingers never have to leave the keyboard to navigate the Web, unless I have to interact with certain plugins.Vimperator reads its configuration from a ~/.vimperatorrc file when it launches. I keep this in version control like the rest of my dotfiles, so I can deploy it to any machine for a reproducible environment. It supports setting Firefox preferences (about:config settings), bookmarks, search engines, etc. I have mine set to remove all the browser chrome, so Firefox has looked almost exactly the same to me since 2009.
For example, I have a bookmark defined for Hacker News in ~/.vimperatorrc:
bmark -keyword=h -title="Hacker News" https://news.ycombinator.com/
Now I can open Hacker News by typing 'oh' ('th' if I want it to open in a new tab), then 'f<n>' to follow a link where <n> is the number highlighted over the link (which decreases if you start typing some letters found in the link text).I can create searches, as well:
bmark -keyword=g -title="Github" https://github.com/search?q=%s
Now I can type 'ogvimperatorrc' to find interesting configurations on GitHub.The tab completion is great, so don't feel you have to limit keywords to a single letter.
I'll be really sad if/when Vimperator becomes incompatible with Firefox. At least there are other extensions or browsers that provide some of the same functionality.
1) Create a bookmark to Hacker News
2) In the bookmark's properties, in the keyword field,
type: h
3) In Firefox's main UI, type ALT+D to move focus to
the URL field, then type: h
To search Github (I'm assuming the URL in the parent is correct): 1) Create a new bookmark
2) In the address field, type:
https://github.com/search?q=%s
(in case it's not obvious, you can use the
%s variable in any URL)
3) In the keyword field, type: g
Then you want to search Github:
4) In Firefox's main UI, type ALT+D to move focus to
the URL field
5) In the URL field, type: g foobar
You'll soon see a Github search for foobarThe killer feature is being able to navigate around the web without using a mouse. Some people don't like switching between the keyboard and the mouse and would rather use their keyboard most/all of the time. That's who Vimperator is for.
With the examples you gave there's already good keyboard shortcuts for those actions, but in most browsers there aren't decent keyboard shortcuts for selecting links. You can use the tab key to cycle between links, and some websites have extra support for keyboards (for example, Google allows you to navigate through search results using arrow keys), but tools like Vimperator allow you to select any visible link with a small number of keypresses.
Here's a simple example, showing one way to navigate to a link posted on HN:
Example use case (which I use daily): press "o w<tab>" which is short for ":open wikipedia" and then type in your Wikipedia search, and you get smart autocompletion from Wikipedia. Much faster and better than doing a Google search and clicking the first link (while looking at a few ads).
nmap s :emenu View.Page Style.No Style<CR>
nmap <S-s> :emenu View.Page Style.Basic Page Style<CR>
You could assign the 'b' character to the :back command, or use the default shift-H. If you want to go back 4 pages, you can simply type "4 o", just like in vim.