Menu

ColonCommands Log in to Edit

Anonymous Hannes Schueller

[ColonCommands]

A number of commands are entered after first entering a colon (:).

Some of the colon commands have shortcuts. Shortcuts are entered without the colon.

:open

Shortcut: o

Insert an URL with the keyboard and load it into the current window.

Example:

:open http://www.vimprobable.org

opens http://www.vimprobable.org in the current window.

:tabopen

Shotcut: t

Insert an URL with the keyboard and loat it into a new window.

Example:

:tabopen http://www.vimprobable.org

opens http://www.vimprobable.org into a new window.

:bma (or :bookmark)

Bookmarks the current page.

Bookmarks are retrieved by tabcompletion when entering a new URL.

You can add tags to the bookmarks by just adding words after the command, e.g.

:bma tag1 tag2 tag3

:qt

Open all bookmarks containing a certain tag in new windows.

:fo[rward] and :ba[ck]

The commands :fo, :forward, :ba and :backward moves through the browse-history

:re[load], :re! and :reload!

The commands :re, :reload, ;re! and :reload! are given to reload or force reload.

:st[op]

Cancel current loading

:source

Toggles between normal view and sourcecode view.

:esource

Opens HTML source in external editor.

:inspect

Inspect element.

:set

Change default settings on the fly. See man vimprobablerc for the list of settings to be changed.

:map

Change default keybindings on the fly. See man vimprobablerc for the list of mappings to be changed.

:quit

Shortcut: d

Close current window

:zi/:zo

Zoom text

:pgzi/:pgzo

Zoom page

Defining New Colon Commands

In Vimprobable2 (starting with version 1.2.1), you can define new colon commands using the map command. This can be done interactively or in vimprobablerc. Example:

map :bmatag1=:bookmark tag1

This would define a new command "bmatag1" which would bookmark the current page and automatically add "tag1" to it.


Related

Wiki: ColonCommands
Wiki: Home