summaryrefslogtreecommitdiffstats
path: root/src/doc
diff options
context:
space:
mode:
authorAndrés M <andmarti1424@users.noreply.github.com>2021-03-21 11:57:38 -0300
committerGitHub <noreply@github.com>2021-03-21 11:57:38 -0300
commitc263186300ff673c0426a86886948fe8502b3e7c (patch)
tree933b29a4cc56bc6de712fb4f706c44fa697dcd2f /src/doc
parentc8cb3205919b7e224e59edeb187920be94e1a91f (diff)
parentac7acf6567f1afa2d0ccb2cef8600525f02a5ad9 (diff)
Merge pull request #353 from ayroblu/add_visual_mode
Add visual mode mapping
Diffstat (limited to 'src/doc')
-rwxr-xr-xsrc/doc22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/doc b/src/doc
index 4c52852..fe0b38d 100755
--- a/src/doc
+++ b/src/doc
@@ -515,6 +515,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
@@ -523,6 +528,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.
@@ -531,6 +540,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.
@@ -1085,11 +1098,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.
@@ -1099,8 +1113,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"