Options

&liberator.appname; has a number of internal variables and switches which can be set to achieve special effects. These options come in 5 forms:

boolean
can only be on or off
number
has a numeric value
string
has a string value
charlist
like a string but with unique characters
stringlist
a comma-separated list of strings

Setting options

:set :se :se[t]

Show all options that differ from their default value.

:se[t] all

Show all options.

E518 E519 :se[t] option?

Show value of option.

:se[t] option […]
Toggle option
set, switch it on.
Number option
show value.
String option
show value.
:se[t] nooption […]

Toggle option: Reset, switch it off.

:se[t] option! […] :se[t] invoption […]

Toggle option: Invert value.

:se[t] invoption=value […] :se[t] option!=value […]

For list options, toggle the specified values.

If the option is a list, the given values are toggled. Given

:set opt=foo,bar

then,

:set opt!=foo,baz

has the same result as

:set opt=bar,baz
:set-default :se[t] option& […]

Reset option to its default value.

:se[t] all&

Set all options to their default value.

:set-args E487 E521 :se[t] option=value […]

Set string or number option to value. For numeric options the value must be given in decimal. The old value can be inserted by typing .

:set+= :se[t] option+=value […]

Add the value to a number option, or append the value to a string option. When the option is a comma separated list, a comma is added, unless the value was empty. If the option is a list of flags, superfluous flags are removed. When adding a flag that was already present the option value doesn't change.

:set^= :se[t] option^=value […]

Multiply the value to a number option, or prepend the value to a string option. When the option is a comma separated list, a comma is added, unless the value was empty.

:set-= :se[t] option-=value […]

Subtract the value from a number option, or remove the value from a string option if it is there. If the value is not found in a string option, there is no error or warning. When the option is a comma separated list, a comma is deleted, unless the option becomes empty. When the option is a list of flags, value must be exactly as they appear in the option. Remove flags one by one to avoid problems.

:setlocal :setl :setl[ocal] :setl[ocal] all :setl[ocal] option? :setl[ocal] option :setl[ocal] nooption :setl[ocal] invoption :setl[ocal] option& :setl[ocal] all& :setl[ocal] option=value :setl[ocal] option+=value :setl[ocal] option^=value :setl[ocal] option-=value

The same as :set command, but operates on current tab options only. See :set for details.

:setglobal :setg :setg[lobal] :setg[lobal] all :setg[lobal] option? :setg[lobal] option :setg[lobal] nooption :setg[lobal] invoption :setg[lobal] option& :setg[lobal] all& :setg[lobal] option=value :setg[lobal] option+=value :setg[lobal] option^=value :setg[lobal] option-=value

The same as :set command, but operates on global options only. See :set for details.

expand-environment-var expand-env :set_env

Environment variables are expanded for path options like cdpath and runtimepath. The variable notation is $VAR (terminated by a non-word character) or $VAR. %VAR% is also supported on Windows.

Setting &liberator.host; options

&liberator.host; options can be viewed and set with the following commands:

:prefs :preferences :pref[erences]

Show the &liberator.host; preferences dialog. You can change the browser preferences from this dialog. Be aware that not all &liberator.host; preferences work, because &liberator.appname; overrides some key bindings and changes &liberator.host;'s GUI.

:prefs! :preferences! :pref[erences]!

Opens about:config in the current tab where you can change advanced &liberator.host; preferences.

:set! :set-! :se[t]! preference=value

Change any &liberator.host; preference (those in the about:config window). You can also reset/delete those preferences with :set! preference&.

overridden-preferences

&liberator.appname; sets several &liberator.host; preferences at startup. If this is undesirable, they can be changed to a different value in your RC file using :set! preference=value

The following preferences are set:

List of options

'act' 'activate' 'activate' 'act' stringlist homepage,quickmark,tabopen,paste

Define when tabs are automatically activated. Available items:

homepage
gH mapping
quickmark
go and gn mappings
tabopen
:tabopen[!] command
paste
P and gP mappings
$CDPATH 'cd' 'cdpath' 'cdpath' 'cd' string equivalent to $CDPATH or ,,

List of directories searched when executing the :cd command. This is only used for relative paths if an absolute path is specified then the option is ignored.

'cpt' 'complete' 'complete' 'cpt' charlist slf

Items which are completed at the :open prompts. Available items:

s
Search engines and keyword URLs
f
Local files
l
&liberator.host; location bar entries (bookmarks and history sorted in an intelligent way)
b
Bookmarks
h
History
S
Search engine suggestions
t
Open tabs

The order is important, so :set complete=bs would list bookmarks first, and then any available quick searches.

Using b and h can make completion very slow if there are many items.
'ds' 'defsearch' 'defsearch' 'ds' string google

Sets the default search engine. The default search engine name is used in the :open [arg] command if [arg] neither looks like a URL nor like a specified search engine/keyword.

This means that if you set defsearch to youtube, then :open arnold schwarzenegger will be exactly the same as :open youtube arnold schwarzenegger. Therefore, you need to add a keyword or search engine youtube first.

If defsearch is empty, then &liberator.host; will always attempt to open the raw [arg].

'editor' 'editor' string gvim -f

Set the external text editor. Sets the editor to run when is pressed in Insert and TextArea modes.

&liberator.appname; will not behave correctly if the editor forks its own process, such as with gvim without the -f argument.
'noex' 'noexrc' 'ex' 'exrc' 'exrc' 'ex' boolean off

Allow reading of an RC file in the current directory. This file is sourced in addition to, and after, your default RC file.

'eht' 'extendedhinttags' 'extendedhinttags' 'eht' string //*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @role='link'] | //input[not(@type='hidden')] | //xhtml:input[not(@type='hidden')] | //a | //xhtml:a | //area | //xhtml:area | //iframe | //xhtml:iframe | //textarea | //xhtml:textarea | //button | //xhtml:button | //select | //xhtml:select

The XPath string of hintable elements activated by ;.

'noeb' 'noerrorbells' 'eb' 'errorbells' 'errorbells' 'eb' boolean off

Ring the bell when an error message is displayed.

'ei' 'eventignore' 'eventignore' stringlist

A list of autocommand event names which should be ignored. If the list contains the value all then all events are ignored.

'enc' 'encoding' 'encoding' string UTF-8

Changes the character encoding of the current buffer. Valid only for the current page.

'fenc' 'fileencoding' 'fileencoding' string UTF-8

Changes the character encoding that &liberator.appname; uses to read and write files.

'nofc' 'nofocuscontent' 'fc' 'focuscontent' 'focuscontent' 'fc' boolean off

Focus the content after a page has loaded. This is useful if you always want to stay in Normal mode when browsing between web sites. When on, it blurs any textbox which often is automatically focused on page load. If you usually like focuscontent but sometimes you'd like to focus the first input field, you can use gi to jump to it.

'fh' 'followhints' 'followhints' 'fh' number 0

Change the behaviour of in Hints mode.

Possible values:

0
Follow the first hint as soon as typed text uniquely identifies it.
1
Follow the selected hint on .
2
Follow the selected hint on only if it's been -selected.
'nofs' 'nofullscreen' 'fs' 'fullscreen' 'fullscreen' 'fs' boolean off

Show the current window fullscreen. Also hide certain GUI elements like the statusline.

'go' 'guioptions' 'guioptions' 'go' charlist

Show or hide certain GUI elements like the menu or toolbar.

Supported characters:

m
Menubar
T
Toolbar
B
Bookmark bar
n
Tab number
N
Tab number over image
b
Bottom scrollbar
r
Right scrollbar
l
Left scrollbar (l and r are mutually exclusive)

You can also hide the tab bar with :set showtabline=0.

Scrollbar changes require a page reload to take effect.
'hf' 'helpfile' 'helpfile' 'hf' string intro

Name of the main help file. This is the tail component of the chrome URL as displayed in the status line when viewing the page.

'hin' 'hintinputs' 'hintinputs' 'hin' stringlist label,value

When generating hints for input elements that do not have an explicit caption, this specifies the methods to try and generate a textual hint. It tries the options in the order that you give, and uses the first that it finds.

value
The hint is the value displayed in a text input, or the selected option for a dropdown.
label
The value of an explicit label for the input, this will not match most manually added labels that are found on sites.
name
The name of the input will be used, although the name is not designed for user consumption, it is frequently very similar to the label.
'hm' 'hintmatching' 'hintmatching' 'hm' string contains

Change the hint matching algorithm during Hints mode.

Possible values:

contains
The typed characters are split on whitespace, and these character groups have to match anywhere inside the text of the link.
wordstartswith
The typed characters are matched with the beginning of the first word (see wordseparators) in the link as long as possible. If no matches occur in the current word, then the matching is continued at the beginning of the next word. The words are worked through in the order they appear in the link. If the typed characters contain spaces, then the characters are split on whitespace. These character groups are then matched with the beginning of the words, beginning at the first one and continuing with the following words in the order they appear in the link.
firstletters
Behaves like wordstartswith, but non-matching words aren't overleaped.
custom
Delegate to a custom function: liberator.plugins.customHintMatcher(hintString)
'ht' 'hinttags' 'hinttags' 'ht' string //*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @role='link'] | //input[not(@type='hidden')] | //a | //area | //iframe | //textarea | //button | //select | //xhtml:input[not(@type='hidden')] | //xhtml:a | //xhtml:area | //xhtml:iframe | //xhtml:textarea | //xhtml:button | //xhtml:select

XPath string of hintable elements activated by f and F

'hto' 'hinttimeout' 'hinttimeout' 'hto' number 0

Timeout before automatically following a non-unique numerical hint. Set to 0 (the default) to only follow numeric hints after pressing or when the hint is unique.

'hi' 'history' 'history' 'hi' number 500

Number of Ex commands and search patterns to store in the command-line history.

'noprivate' 'private' 'private' boolean off

Set the private browsing option. In private browsing mode history, cache files, cookies, form data, passwords, download list entries, local and URL marks, command-line history and macros are available only for the duration of the private browsing session and deleted when returning to normal browsing mode.

'nohls' 'nohlsearch' 'hls' 'hlsearch' 'hlsearch' 'hls' boolean off

Highlight previous search pattern matches

'noic' 'noignorecase' 'ic' 'ignorecase' 'ignorecase' 'ic' boolean on

Ignore case in search patterns.

'nois' 'noincsearch' 'is' 'incsearch' 'incsearch' 'is' boolean on

Show where the search pattern matches as it is typed.

Incremental searching currently only works in the forward direction.
'noim' 'noinsertmode' 'im' 'insertmode' 'insertmode' 'im' boolean on

Use Insert mode as the default for text areas. This is useful if you want to use the known &liberator.host; interface for editing text areas. Input fields default to this behaviour irrespective of this option's setting.

Textarea mode can be entered with from Insert mode.

'ls' 'laststatus' 'laststatus' 'ls' number 2

Determines when the last window will have a status line.

Possible values:

0
Never
1
Only if there are multiple windows
2
Always
laststatus=1 not implemented yet.
'nolks' 'nolinksearch' 'lks' 'linksearch' 'linksearch' 'lks' boolean off

Limit the search to hyperlink text. This includes (X)HTML elements with an href atrribute and XLink simple links.

'nolpl' 'lpl' 'noloadplugins' 'loadplugins' 'loadplugins' 'lpl' boolean on

Load plugin scripts when starting up. When on, yet unloaded plugins are automatically loaded after the &liberator.name;rc file has been sourced. To load plugins earlier, use the :loadplugins command within the &liberator.name;rc.

'maxitems' 'maxitems' number 20

Maximum number of items to display at once in a listing.

'msgs' 'messages' 'messages' 'msgs' number 100

Number of messages to store in the message history.

'nomore' 'more' 'more' boolean on

Pause the message list window when more than one screen of listings is displayed.

'nextpattern' 'nextpattern' stringlist \bnext,^>$,^(>>|»)$,^(>|»),(>|»)$,\bmore\b

Patterns to use when guessing the next page in a document sequence when the user hits ]]. Each pattern, in order, is matched against all links in the page with the first match being used. The patterns are case insensitive regular expressions and the link elements are those defined by hinttags.

'newtab' 'newtab' stringlist

Define which Ex commands output the result in a new tab automatically. You can also use :tab command to manually output a command in a new tab.

The possible values:

all
All commands
addons
:addo[ns] command
downloads
:downl[oads] command
extoptions
:exto[ptions] command
help
:h[elp] command
javascript
:javascript! or :js! command
prefs
:pref[erences]! or :prefs! command
'noonline' 'online' 'online' boolean on

Show and set the 'work offline' behavior.

'pageinfo' 'pa' 'pageinfo' 'pa' charlist gfm

Desired info in the :pageinfo output.

Available items:

g
General info
f
Feeds
m
Meta tags

The order of the options defines the order in which they appear in the result.

'pps' 'popups' 'popups' 'pps' stringlist tab

Define where to show requested popup windows. Does not apply to windows which are opened by middle clicking a link, they always open in a new tab.

Possible values:

tab
Open popups in a new tab
window
Open popups in a new window
resized
Open resized popups in a new window

If neither tab nor window is provided, all popups open in the current tab. tab and window are mutually exclusive, and the last one listed is effective.

This option does not change the popup blocker of &liberator.host; in any way.
'previouspattern' 'previouspattern' stringlist

Patterns to use when guessing the previous page in a document sequence when the user hits [[. Each pattern, in order, is matched against all links in the page with the first match being used. The patterns are case insensitive regular expressions and the link elements are those defined by hinttags.

$&liberator.idname;_RUNTIME 'rtp' 'runtimepath' 'runtimepath' 'rtp' stringlist $&liberator.idname;_RUNTIME or Unix, Mac: ~/.&liberator.name;, Windows: ~/&liberator.name;

List of directories searched for runtime files:

  • colors/
  • macros/
  • plugin/

Example:

:set runtimepath=~/my&liberator.name;,~/.&liberator.name;

This will search for plugins in both ~/my&liberator.name;/plugin and ~/.&liberator.name;/plugin

On startup, if the environment variable $&liberator.idname;_RUNTIME does not exist, &liberator.appname; will set it to match this value.

'si' 'sanitizeitems' 'sanitizeitems' 'si' stringlist cache,commandline,cookies,formdata,history,marks,sessions

The default list of private items to sanitize.

cache
Cache
commandline
Command-line history
cookies
Cookies
downloads
Download history
formdata
Saved form and search history
history
Browsing history
marks
Local and URL marks
macros
Saved macros
offlineapps
Offline website data
passwords
Saved passwords
sessions
Authenticated sessions
sitesettings
Site preferences

When history items are sanitized :open, :tabopen and :winopen command-line history entries are also removed.

'sts' 'sanitizetimespan' 'sanitizetimespan' 'sts' number 1

The default sanitizer time span. Only items created within this timespan are deleted.

This only applies to cookies, history, formdata, and downloads.
0
Everything
1
Last hour
2
Last two hours
3
Last four hours
4
Today
'scr' 'scroll' 'scroll' 'scr' number 0

Number of lines to scroll with and commands. The number of lines scrolled defaults to half the window size. When a [count] is specified to the or commands this is used to set the value of scroll and also used for the current command. The value can be reset to half the window height with :set scroll=0.

'shell' 'sh' 'shell' 'sh' string _$SHELL_ or "sh", Win32: "cmd.exe"

Shell to use for executing :! and :run commands.

'shellcmdflag' 'shcf' 'shellcmdflag' 'shcf' string -c, Win32: /c

Flag passed to shell when executing :! and :run commands.

bash -c gvim
'nosmd' 'noshowmode' 'smd' 'showmode' 'showmode' 'smd' boolean on

Show the current mode in the command line.

'ssli' 'showstatuslinks' 'showstatuslinks' 'ssli' number 1

Show the destination of the link under the cursor in the status bar. Also links which are focused by keyboard commands like are shown.

Possible values:

0
Don't show link destination
1
Show the link in the status line
2
Show the link in the command line
'stal' 'showtabline' 'showtabline' 'stal' number 2

Control when to show the tab bar of opened web pages.

Possible values:

0
Never show tab bar
1
Show tab bar only if more than one tab is open
2
Always show tab bar
'noscs' 'nosmartcase' 'scs' 'smartcase' 'smartcase' 'scs' boolean on

Override the ignorecase option if the pattern contains uppercase characters. This is only used if the ignorecase option is set.

'suggestengines' 'suggestengines' stringlist google

Set the search engines which can be used for completion suggestions. Add S to the complete option if you want to use this feature.

This feature could make tab-completion slower because it needs to wait for changes, so use it only if you have a fast internet connection.
'titlestring' 'titlestring' string &liberator.appname;

Change the title of the browser window. &liberator.appname; changes the browser title from Title of web page - Mozilla &liberator.host; to Title of web page - &liberator.appname;. If you don't like that, you can restore it with:

:set titlestring=Mozilla &liberator.host;
'noum' 'nousermode' 'um' 'usermode' 'usermode' 'um' boolean off

Show current website with a minimal style sheet to make it easily accessible.

This is a local option for now, a global value may be supported in the future.
'urlseparator' 'urlseparator' string ,\s

Set the separator regex used to separate multiple URL args. Multiple arguments can be specified for :open, and similar commands, using this regex as the separator. Using whitespace alone is not generally useful since it is often contained in a single argument. E.g., :open linus torvalds should perform a single search for the key words linus and torvalds. If this is set to the empty string then these arguments will never be split.

'verbose', 'vbs' 'verbose' 'vbs' number 1

Define which info messages are displayed. When bigger than zero, &liberator.appname; will give messages about what it is doing. These can be viewed at any time with the :messages command. The highest value is 15, being the most verbose mode.

'novb' 'novisualbell' 'vb' 'visualbell' 'visualbell' 'vb' boolean off

Use visual bell instead of beeping on errors. The visual bell style is controlled by :hi Bell.

To disable both the audible and visual bells use :set visualbell and :hi Bell display: none;

'wildcase' 'wic' 'wildcase' 'wic' string smart

Defines how completions are matched with regard to character case. Possible values:

smart
Case is significant when capital letters are typed
match
Case is always significant
ignore
Case is never significant
'wildignore' 'wig' 'wildignore' 'wig' stringlist

List of file patterns to ignore when completing files. E.g., to ignore object files and Vim swap files :set wildignore=.\\.o,\\..\\.s[a-z]\\2

Unlike Vim each pattern is a regex rather than a glob.
'wim' 'wildmode' 'wildmode' 'wim' stringlist list:full

Defines how command-line completion works. It is a comma-separated list of parts, where each part specifies what to do for each consecutive use of the completion key. The first part specifies the behavior for the first use of the completion key, the second part for the second use, etc.

These are the possible values for each part:

Complete only the first match.
full
Complete the next full match. After the last, the original string is used.
longest
Complete till the longest common string.
list
When more than one match, list all matches.
list:full
When more than one match, list all matches and complete the first match.
list:longest
When more than one match, list all matches and complete till the longest common string. When there is only a single match, it is fully completed regardless of the case.
'wop' 'wildoptions' 'wildoptions' 'wop' stringlist

A list of words that change how command-line completion is done.

Possible words:

auto
Automatically show completions while you are typing.
sort
Always sort the completion list, overriding the complete option.
'wsp' 'wordseparators' 'wordseparators' 'wsp' string \\<>#\\*\+\\|=~ _\\-]]]>

A regex which defines the word separators which are used for the hintmatching types wordstartswith and "firstletters" to split the words in the text of a link.