On 29/10/11 11:22, Thilo Six wrote:
Hello

attached is a example file. When searching in there with:
/vi\|vim
or
/vim\|vi

does not give the same results. Which is what i would expect.
Actually the latter gives the results i was vim asking for.
My vim version is a bit dated though: 7.2.445 .
Or am i doing something wrong?


"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.
--
hundred-and-one symptoms of being an internet addict:
207. Your given you one phone call in prison and you ask them for a laptop.

--
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

Raspunde prin e-mail lui