Wednesday, February 20, 2013

Re: trouble with pattern, character collections

Hi Bram,

thanks for joining the discussion and participating.

echo len(nr2char(0))
returns 0, where is the 0 char stored as \n ..
So please take care about the use case: I'm not talking about buffers,
I'm talking about matchstr, substitute etc and viml strings.

I'm aware that both should be tested and documented which becomes clear
reading my later summary.

Anyway [^\n] matching \n is a very very unexpected behaviour.
Having \_[ syntax doesn't make sense, either. Because [\n] works and is
standard. And this should be visible in docs.

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@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment