I stumbled on this earlier this week.

:help /\] says:

        - To include a literal ']', '^', '-' or '\' in the collection, put a
          backslash before it: "[xyz\]]", "[\^xyz]", "[xy\-z]" and "[xyz\\]".
          ...
          For '-' you can also make it the first or last character: "[-xyz]",
          "[^-xyz]" or "[xyz-]".  For '\' you can also let it be followed by
          any character that's not in "^]-\bertn".

I think that last sentence should be:

    For '\' you can also let it be followed by any character that's
not in "^]-\bertndoxuU".

Unless there is some reason to exclude the translation codes:

                \d123   decimal number of character
                \o40    octal number of character up to 0377
                \x20    hexadecimal number of character up to 0xff
                \u20AC  hex. number of multibyte character up to 0xffff
                \U1234  hex. number of multibyte character up to 0xffffffff

-- 
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