diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-14 14:55:14 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-14 17:40:14 +0100 |
| commit | da5a3152f073a59eb936aa9c7d03d648af087503 (patch) | |
| tree | 71930129ce290d5effa3c69bd62ac4449a640e7b /man | |
| parent | f9a147a50f33f0e27858bddead52d60ce8b46591 (diff) | |
| download | vis-da5a3152f073a59eb936aa9c7d03d648af087503.tar.gz vis-da5a3152f073a59eb936aa9c7d03d648af087503.tar.xz | |
vis-prompt: make it easier to enter multi line commands
<Enter> now searches for lines starting with command delimiters to
find the command boundaries.
To actually enter a literal new line use <Ctrl-v><Enter> in insert
mode or `o` / `O` in normal mode.
Also remove the special <Backspace> mapping, does not seem esential
use <Escape> to close the prompt window.
Diffstat (limited to 'man')
| -rw-r--r-- | man/vis.1 | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -1,4 +1,4 @@ -.Dd December 5, 2016 +.Dd January 14, 2017 .Dt VIS 1 .Os Vis VERSION . @@ -1156,6 +1156,29 @@ permissions or when either the file owner, group, POSIX ACL or SELinux labels can not be restored. .El . +.Sh COMMAND and SEARCH PROMPT +. +The command and search prompt as opened by +.Ic ":" , +.Ic "/" , +or +.Ic "?" +is implemented as a single line height window, displaying a regular file +whose editing starts in insert mode. +.Aq Escape +switches to normal mode, a second +.Aq Escape +cancels the prompt. +.Aq Up +enlarges the window, giving access to the command history. +.Aq C-v +.Aq Enter +inserts a literal new line thus enabling multiline commands. +.Aq Enter +executes the visual selection if present, or else everything in the +region spawned by the cursor position and the delimiting prompt symbols +at the start of adjacent lines. +. .Sh CONFIGURATION . .Nm |
