aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxomachine <xomachiner@gmail.com>2016-02-18 22:47:39 +0300
committerMarc André Tanner <mat@brain-dump.org>2016-02-20 15:27:20 +0100
commit3b059c8b49b424cea51fd7d5c22934e7d81070ea (patch)
treee4ad29b697aa9e5dfcd808fa5fe83a2db795b8e6
parent5207eb9c7a12f7f1eaa772b074e9cb6907ebedcf (diff)
downloadvis-3b059c8b49b424cea51fd7d5c22934e7d81070ea.tar.gz
vis-3b059c8b49b424cea51fd7d5c22934e7d81070ea.tar.xz
Description for langmap command
-rw-r--r--README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md
index c5e83af..8d6a770 100644
--- a/README.md
+++ b/README.md
@@ -286,6 +286,7 @@ Operators can be forced to work line wise by specifying `V`.
:unmap remove a global key mapping
:map-window add a window local key mapping
:unmap-window remove a window local key mapping
+ :langmap set key equivalents for layout specific key mappings
:! filter range through external command
:| pipe range to external command and display output in a new window
:set set the options below
@@ -391,6 +392,23 @@ Unmapping works as follows:
The commands suffixed with `-window` only affect the currently active window.
+### Layout Specific Key Bindings
+
+Vis allows to set key equivalents for non-latin keyboard layouts. This
+facilitates editing non-latin texts. The defined mappings take effect
+in all non-input modes, i.e. everywhere except in insert and replace mode.
+
+For example, the following maps the movement keys in Russian layout:
+
+ :langmap ролд hjkl
+
+More generally the syntax of the `:langmap` command is:
+
+ :langmap <sequence of keys in your layout> <sequence of equivalent keys in latin layout>
+
+If the key sequences have not the same length, the rest of the longer
+sequence will be discarded.
+
### Tab <-> Space conversion and Line endings \n vs \r\n
Tabs can optionally be expanded to a configurable number of spaces.