From d3f8637f65261ccec4b267f358c286cc1060e8ee Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 8 Apr 2013 22:30:56 +0200 Subject: [PATCH] Added example for :eval command to manual page. --- doc/vimb.1.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 -- 2.20.1