136178Re: trouble with pattern, character collections
- Feb 17, 2013
> This is allowed so that in a textThis doesn't make sense. If I ask to not match \n I don't want \n to be
> which is shown by vim as "A^@A" or "A^MA" the '.' also matches those
> control chars carrige return / line feed.
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 .?
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.
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.
- << Previous post in topic Next post in topic >>