Skip to content

Commit

Permalink
Description for langmap command
Browse files Browse the repository at this point in the history
  • Loading branch information
xomachine authored and martanne committed Feb 20, 2016
1 parent 5207eb9 commit 3b059c8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3b059c8

Please sign in to comment.