Jürgen Krämer wrote:
why? AFAIU "\<Plug>" is equivalent to '<Plug>' and this is a valid pattern.

Double quoted strings in Vimscript can contain "special keys" like \<CR> which define special key mappings, see :help expr-quote. You can try it yourself:

        :echo "\<Plug>"
        <80><fd>S
        :echo '\<Plug>'
        \<Plug>


What Bram is talking about is that the result of "\<Plug>" isn't a valid regular expression because of the embedded special key.

 - Peter Odding

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