diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-15 10:56:09 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-21 19:28:08 +0100 |
| commit | f7494b3b095058ecdf5c88da89701b88dbc6cf96 (patch) | |
| tree | 9ca4c0d48153182e91020ced2746904f0e022d3a /README.md | |
| parent | 3fdbd3f7883715529617ecc3ce0f7b621024664d (diff) | |
| download | vis-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.md | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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. |
