On Tue, December 15, 2009 2:57 pm, epanda wrote:
> Sorry, the search command send cursor where occurence is found : here
> =>   ;;
>
> cursor is here
>             |
>            V
> ;foo1;foo;;bar    => should return 3

Ok, so your cursor in on the first of the 2 consecutive ';;', right?
And from your example above, it should return 2?

I would actually use something like this:

:echo len(split(getline('.')[0:col('.')-1], ';'))

regards,
Christian
-- 
:wq

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to