surfing browsing
Vimperator overrides nearly all Firefox keys in order to make browsing more pleasant for Vim users. In the rare occurrences where you want to pass a keystroke to the web page or to Firefox to retain its original meaning you have 2 possibilities:
pass-through <C-q> CTRL-Q
Disable all Vimperator keys except <Esc> and pass them to the next event handler. This is especially useful, if JavaScript controlled forms like the RichEdit form fields of GMail don't work anymore. To exit this mode, press <Esc>. If you also need to pass <Esc> in this mode to the web page, prepend it with CTRL-V.
send-key <C-v> CTRL-V
If you only need to pass a single key to a JavaScript form field or another extension prefix the key with <C-v>. Also works to unshadow Firefox shortcuts like <C-o> which are otherwise hidden in Vimperator. When Vimperator mode is temporarily disabled with <C-q>, <C-v> will pass the next key to Vimperator instead of the web page.
Opening web pages | opening |
o :o :open
Open one or more URLs in the current tab. Multiple URLs can be separated with ", ". Note that the space after the comma is required. Each token is analyzed and in this order:
Opened as a local file if it is an existing relative or absolute filename.
:open /etc/fstab shows the file system table.
:open ../other/foo.html in your home directory opens /home/other/foo.html
Opened with the specified search engine if the token looks like a search string and the first word is the name of a search engine (:open wikipedia linus torvalds opens the Wikipedia entry for linus torvalds). The short name of a search engine is automatically guessed from its name. If you want to set a custom name, you can change it with :dialog searchengines.
Opened with the default search engine or keyword (specified with the 'defsearch' option) if the first word is no search engine (:open linus torvalds opens a Google search for linux torvalds).
Passed directly to Firefox in all other cases (:open www.osnews.com, www.slashdot.org opens OSNews in the current, and Slashdot in a new background tab).
You can use :open -tags linux torvalds<Tab> to complete bookmarks with tag "linux" and which contain "torvalds". Note that -tags support is only available for tab completion, not for the actual command. The items which are completed on <Tab> are specified in the 'complete' option. Without argument, reloads the current page. Without argument but with !, reloads the current page skipping the cache.
t :t :tabopen
Just like :open, but opens the resulting web page(s) in a new tab. When used with !, the 'tabopen' value of the 'activate' option is negated.
:winopen :wopen :winedit
Just like :open, but opens the resulting web page(s) in a new window.
Navigating | navigating |
H <C-o> CTRL-O :ba :back
Go [count] pages back in the browser history. The special version :back! goes to the beginning of the browser history.
L <C-i> CTRL-i :fo :fw :forward
Go [count] pages forward in the browser history. The special version :forward! goes to the end of the browser history.
gu
Go to [count]th parent directory.
2gu on http://www.example.com/dir1/dir2/file.htm opens http://www.example.com/dir1/.
gU
Go to the root of the website.
gU on http://www.example.com/dir1/dir2/file.htm opens http://www.example.com/. When browsing a local directory, it goes to the root directory.