From: Daniel Carl Date: Mon, 8 Apr 2013 20:30:56 +0000 (+0200) Subject: Added example for :eval command to manual page. X-Git-Url: https://git.owens.tech/style.css/style.css/git?a=commitdiff_plain;h=d3f8637f65261ccec4b267f358c286cc1060e8ee;p=vimb.git Added example for :eval command to manual page. --- diff --git a/doc/vimb.1.txt b/doc/vimb.1.txt index 5a3efff..8ef6175 100644 --- a/doc/vimb.1.txt +++ b/doc/vimb.1.txt @@ -324,16 +324,14 @@ Save the current opened uri with \fITAGS\fP to the bookmark file. .BI run " [COMMAND LIST]" Run is a command, that was introduced to have the ability to run multiple other commands with a single call. Everything after the `run' is interpreted -as a `|' seperated list of commands and parameters. -":run [count]command[ param[=value]]|[count]command[ param[=value]]|..." +as a `|' seperated list of commands and parameters. The run command allows to +use fancy keybindings that set several config settings with only on keypress. -The run command allows to use fancy keybindings that set several config -settings with only on keypress. +Format: +":run [count]command[ param[=value]]|[count]command[ param[=value]]|..." Example: - -:run set input-bg-normal=#ff0 | set input-fg-normal=#f0f | 5pagedown - +":run set input-bg-normal=#ff0 | set input-fg-normal=#f0f | 5pagedown" .TP .BI [ N "]search-forward, [" N "]search-backward" Search in current page forward or backward. @@ -351,6 +349,9 @@ Toggle between normal view and source view for the current page. .BI eval " JAVASCRIPT" Runs the given \fIJAVASCRIPT\fP in the current page and display the evaluated value. + +Example: +":eval document.cookie" .SH FILES .I $XDG_CONFIG_HOME/PROJECT/config .RS