Hi, Peter Odding wrote: > 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.
ah, yes, thank you. I had not thought about the special treatment of "\<...>", because \<Plug> looked so 'un-key-ly'. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- 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