On 10/31/2011 10:31 AM, Thilo Six wrote:
Tony Mechelynck wrote the following on 31.10.2011 00:08
Hello Tony,
-- <snip> --
"vi" always matches wherever "vim" matches, so you have a kind of
degenerate case here.
Maybe what you wanted was
/vi\%[m]
or
/vim\=
See
:help /\=
:help /\%[]
Best regards,
Tony.
Thanks for the pointer. There are quite a lot of search atoms. Although i'll
always try to look at 'pattern-atoms' i obviously have to learn.
Which is quite fun sometimes. It is like playing vim-chess. Kind of.
But it is quite a lot less fun if you are in hurry have to achieve something by
date.
Thank you.
Off topic, but I've been wondering...
Is there an option to use perl/python syntax for RE? If not, would that
be a welcome patch? Could it be done with vim's scripting? Also an
optional string which indicates which chars need escaping (like ')' or
'?') might be useful.
-ernie
--
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