I'm a little stumped by a problem brought to light by a recent edit to
http://vim.wikia.com/wiki/Using_Vim_with_the_Dvorak_keyboard_layout

:help 'langmap' says:

        The 'langmap' option is a list of parts, separated with commas.  Each
        part can be in one of two forms:
        1.  A list of pairs.  Each pair is a "from" character immediately
            followed by the "to" character.  Examples: "aA", "aAbBcC".
        2.  A list of "from" characters, a semi-colon and a list of "to"
            characters.  Example: "abc;ABC"
        Example: "aA,fgh;FGH,cCdDeE"
        Special characters need to be preceded with a backslash.  These are
        ";", ',' and backslash itself.

The tip linked above tries to set 'langmap' to include a mapping of
the comma key to a w (because in Dvorak, you press what would be a
comma in QWERTY to get a w, and vice versa).

>From the :help entry, I and the tip author would type the following to
accomplish this:

:set langmap=\,w

However, doing so gives:

E357: 'langmap': Matching character missing for w

This works, but I cannot justify why it would be needed:

:set langmap=\\,w

And, as a related problem, this means you need to type FOUR
backslashes to get a single backslash in a langmap. This seems wrong.

e.g. this gives the same error as above:

:set langmap=\\h

But this works:

:set langmap=\\\\h

Am I missing something here? It's certainly surprising behavior that
should be documented if intentional, but I'm not confident it's a
bug...yet.

Vim 7.3.353 "Vim without Cream" build.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui