aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-11-15 10:56:09 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-11-21 19:28:08 +0100
commitf7494b3b095058ecdf5c88da89701b88dbc6cf96 (patch)
tree9ca4c0d48153182e91020ced2746904f0e022d3a /README.md
parent3fdbd3f7883715529617ecc3ce0f7b621024664d (diff)
downloadvis-f7494b3b095058ecdf5c88da89701b88dbc6cf96.tar.gz
vis-f7494b3b095058ecdf5c88da89701b88dbc6cf96.tar.xz
sam: change default addresses used for commands in normal mode
Except for special commands like `w` and `wq` treat the cursor as an implicit one character selection to which the command is applied.
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index 71e5c8d..484e634 100644
--- a/README.md
+++ b/README.md
@@ -331,11 +331,14 @@ Operators can be forced to work line wise by specifying `V`.
* if no address was supplied to the command then:
+ + `w` and `wq` command are always applied to the whole file
+
+ if multiple cursors exist, the command is executed once for every
- cursor with dot set to the current line of the cursor
+ cursor with dot set to the character the cursor is currently over
- + otherwise if there is only 1 cursor then the command is executed
- with dot set to the whole file
+ + otherwise if there is only 1 cursor then `x` and `y` commands are
+ applied to whole file whereas the other commands are executed
+ with an implicit selection matching the current character
The command syntax was slightly tweaked to accept more terse commands.