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

136178Re: trouble with pattern, character collections

Expand Messages
  • Marc Weber
    Feb 17, 2013
    • 0 Attachment
      > This is allowed so that in a text
      > which is shown by vim as "A^@A" or "A^MA" the '.' also matches those
      > control chars carrige return / line feed.
      This doesn't make sense. If I ask to not match \n I don't want \n to be
      matched. Its about following the principle of least surprise.
      The burden to learn vim specific regex is already high enough for most

      Also try to make me understand why "[^\n]" is supposed to do what it
      says, but '[^\n]' is not. In which way is either one related to .?

      > https://groups.google.com/d/topic/vim_dev/DzJ7ZzYlzQI/discussion
      In any case it should be documented.

      Also let me know if you think that I missunderstood the docs which I

      So this is either an implementation or a documentation bug.
      I'd like to this to be treated as a implementation bug.

      Vim should also follow the principle of "least suprprise" - and [^\n] is
      supposed to not match \n.

      There is more future than past - so its ok to break compatiblity in such
      an obvious case IMHO.

      Marc Weber

      You received this message from the "vim_use" 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

      You received this message because you are subscribed to the Google Groups "vim_use" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 28 messages in this topic