Loading ...
Sorry, an error occurred while loading the content.

Re: "\ " =~# "\ " => 0

Expand Messages
  • Jürgen Krämer
    Hi, ... ah, yes, thank you. I had not thought about the special treatment of , because looked so un-key-ly . Regards, Jürgen -- Sometimes I
    Message 1 of 7 , Jul 29, 2010
    • 0 Attachment
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.