diff options
author | Ben Lu <ayroblu@gmail.com> | 2021-03-21 14:52:12 +0000 |
---|---|---|
committer | Ben Lu <ayroblu@gmail.com> | 2021-03-21 14:52:12 +0000 |
commit | ac7acf6567f1afa2d0ccb2cef8600525f02a5ad9 (patch) | |
tree | 798a271f5af690ca0154f02a9e36e81190730510 /src/doc | |
parent | a9e96f608c547307262a086edfb61c1ab5fb1d00 (diff) |
Update doc with visual mode
Diffstat (limited to 'src/doc')
-rwxr-xr-x | src/doc | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -456,6 +456,11 @@ Commands for handling cell content: only in INSERT_MODE. Example: :imap "<C-f>" "format" + :vmap {lhs} {rhs} + Map the key sequence {lhs} to {rhs} This mapping takes effect + only in VISUAL_MODE. + Example: :vmap "e" "y" + :nnoremap {lhs} {rhs} This is the non-recursive version of ":nmap". See NOTES on MAPPING below @@ -464,6 +469,10 @@ Commands for handling cell content: This is the non-recursive version of ":imap". See NOTES on MAPPING below + :vnoremap {lhs} {rhs} + This is the non-recursive version of ":vmap". See NOTES on + MAPPING below + :nunmap {lhs} Remove the map sequence {lhs} that takes effect in NORMAL_MODE. @@ -472,6 +481,10 @@ Commands for handling cell content: Remove the map sequence {lhs} that takes effect in INSERT_MODE. + :vunmap {lhs} + Remove the map sequence {lhs} that takes effect in + VISUAL_MODE. + :file [{file}] If {file} is given, expand {file}, and set the current file name to the result of the expansion. @@ -930,11 +943,12 @@ Commands for handling cell content: Mapping can be done in any SC-IM file or in a .scimrc file in the home directory. - Maps can be added with the :nmap and :imap commands and removed with - the :nunmap and :iunmap commands. + Maps can be added with the :nmap, :imap, and :vmap commands and removed + with the :nunmap, :iunmap, and :vunmap commands. Example: :nmap "d" ":h<cr>" -> Maps d to ':help<cr>' in Normal mode. :imap "f" "foo" -> Maps f to the string 'foo' in Insert mode. + :vmap "e" "y" -> Maps e to y in Visual mode. Some notes: The Left and Right sequence of a mapping cannot contain numbers. @@ -944,8 +958,8 @@ Commands for handling cell content: <PGDOWN> <PGUP> If an existing map sequence is remapped, it is replaced with the new one. - Mapping is recursive by default. The non-recursive versions of :nmap and - :imap are :nnoremap and :inoremap. + Mapping is recursive by default. The non-recursive versions of :nmap, + :imap, and :vmap are :nnoremap, :inoremap, and :vnoremap. Example: nmap "a" "b", nnoremap "b" "j" |