From f7494b3b095058ecdf5c88da89701b88dbc6cf96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 15 Nov 2016 10:56:09 +0100 Subject: 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. --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'README.md') 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. -- cgit v1.2.3