On Dec 6, 10:34 am, john york <[email protected]> wrote:
>
> For example, I need to know the position of "foo" inside the string :
>
> "not-this-foo foo fooNotGood"
>
> The \<foo\> doesn't seems to work inside the match() function.

Works for me.

:set isk+=-
:echo match("not-this-foo foo fooNotGood", '\<foo\>')

I get 13.  What do you get?
Maybe you haven't got '-' in iskeyword?  Or maybe you used:

:echo match("not-this-foo foo fooNotGood", "\<foo\>")

with double quotes on the pattern, which would match <foo>?

Regards, John

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

Reply via email to