box.matto.nl
[tux]

This page: Home » Articles » Vimperator and bookmarks

Vimperator and bookmarks

Vimperator: the webbrowser with an attitude

vimperator logo

Vimpartor is keyboard-driven. The keybindings are inspired by vim, the best clone of vi. If you know how to use vim, then you can work with vimperator immediately. If not, shame on you. Start learning to use vim !

Vimperator uses the hjkl motion keys. It is defenitly worth your time to learn how to use the hjkl-keys!

Bookmarks and quickmarks

Bookmarks

Creating a bookmark

The shortest way to create a bookmark to the current page is

:bmark

The difference between bmark and bmark!

Adding an axclamationmark (!) at the :bmark command can be important.

Switches for the bmark command

The bmark command can be advanced with the following switches:

I do not know if you will use these a lot. The url can be added witout any switch (bmark <URL>). The others needs a switch (bmark -t <title> or (bmark -T <taglist> or bmark -k <keyword>).

<taglist> is a comma seperated list of tags.

Retrieve a bookmark in vimperator

You have stored one or more bookmarks, so once in a while you might want to retrieve one of these bookmarks :) Retrieving bookmarks is quite easy:

:bmarks <filter>

The command :bmarks will search the bookmarks. The <filter> can be applied or omitted. When omitted, vimperator returns a list of all bookmarks. This list can be navigated (you could use the famous j and k keys for this or one of the lesser alternatives like the arrowkeys or the mouse).

When the <filter> is applied the bookmarks are searched for <filter> and a list with the search results is shown. Example:

:bmarks life 
will find all bookmarks with the word "life" in the URL or in the label (title).

The difference between bmarks and bmarks!

Adding an axclamationmark (!) at the :bmarks command result in opening all the found bookmarks in new tabs.

Now this can by quite hefty if your search resulted in a long list of bookmarks :) This can be kept under control by adding the -m switch (or as long option: -max) Example:

:bmarks! -m 6 life 

Searching for tags

Retrieving bookmarks which have been tagged by you with a certain tag is easy:

:bmarks -T <taglist> 

<taglist> is a comma seperated list of tags.

Visiting a page that is bookmarked

When you visit a webpage that is allready in your bookmarks, vimperator is kind enough to let you know this.

If vimperator recognizes the URL of the current page from your bookmarks, a small heart is shown right next to the URL in the bottom bar.

Quickmarks

Creating a quickmark

A quickmark is created by the comment
:qmark <key> <URL>

Where <key> is the key (one character) by which the quickmark is called.

Example of creating a quickmark

:qmark b http://box.matto.nl

This creates a quickmark with the key "b" to the URL http://box.matto.nl.

Retrieve a quickmark in vimperator

Retrieving a quickmark is easy: just type
go<key>

Where <key> is the key of the quickmark.

After creating the quickmark of the example above, all you have to do is

gob

This will bring you to the URL http://box.matto.nl.

Please note that there is no colon (:) in front of the go<key> command.

Open a quickmark in a new tab in Vimperator

Opening a quickmark in a new tab is as easy as opening one in the current tab. To open a quickmark in a new tab, just type
gn<key>

So, in short:

Retrieve a list of your quickmarks

To find what quickmarks you have created with which key, give the command :qmarks. This will give a list of all quickmarks.

Open a group of pages each in it's own tab

Create a quickmark that points to several URLs, seperated with a comma (,):

:qmark f URL1,URL2,URL3

Now you can open these URLs, each in it's own tab, with the command:

gnf

Last updated: $Date: 2010-01-02 08:03:44 $

Walk through this site
← previous page next page →