Vimperator

expression expr eval

INTRO TO BE WRITTEN…

:ec :echo

:ec[ho] {expr}

Display a string at the bottom of the window. Useful for showing informational messages. Multiple lines can be separated by \n. {expr} can either be a quoted string, or any expression which can be fed to eval() like 4+5. You can also view the source code of objects and functions if the return value of {expr} is an object or function.

:echoe :echoerr

:echoe[rr] {expr}

Display an error string at the bottom of the window. Just like :ec[ho], but echoes the result highlighted in red. Useful for showing important messages.

:exe :execute

:exe[cute] {expr1} [ … ]

Execute the string that results from the evaluation of {expr1} as an Ex command. Example: :execute echo "test" shows a message with the text "test".

:js :javas :javascript

:javas[cript] {cmd}

:javascript <<{endpattern}\n{script}\n{endpattern}

:javascript[!]

Run any JavaScript command through eval(). Acts as a JavaScript interpreter by passing the argument to eval(). :javascript alert('Hello world') shows a dialog box with the text "Hello world". :javascript <<EOF reads all the lines until a line starting with 'EOF' is found, and interpret them with the JavaScript eval() function.

The special version :javascript! opens the JavaScript console of Firefox.

Rudimentary <Tab> completion is available for :javascript {cmd}<Tab> (but not yet for the :js <<EOF multiline widget). Be aware that Vimperator needs to run {cmd} through eval() to get the completions, which could have unwanted side effects.

:let

:let {var-name} [+-.]= {expr1}

:let {var-name}

:let

Sets or lists a variable. Sets the variable {var-name} to the value of the expression {expr1}. If no expression is given, the value of the variable is displayed.Without arguments, displays a list of all variables.

:unl :unlet

:unl[et][!] {name}

Deletes the variable {name}. Several variable names can be given. When used with [!] no error message is output for non-existing variables.